Skip to content
This repository was archived by the owner on Aug 20, 2021. It is now read-only.

mappingConfig fails to pull #21

Open
indig0fox opened this issue Apr 20, 2021 · 0 comments
Open

mappingConfig fails to pull #21

indig0fox opened this issue Apr 20, 2021 · 0 comments

Comments

@indig0fox
Copy link

This call was intermittently failing for me and causing the playback page to get stuck on "Loading" the replay

R3-Web/dist/playback.php

Lines 27 to 32 in ac92ae0

$url = 'https://r3tiles-a.titanmods.xyz/config.json';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
$mappingConfig = curl_exec($ch);
curl_close($ch);

So I had to add a null check in playback.php

if (!$mappingConfig)
	$mappingConfig = '{}';
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant