https://metaplay.io logo
Connection Error
# questions-and-feedback
n
I have been working on a custom data pipeline for Config Data, coming from JSON files instead of using Google Sheets. After experimenting a little I ended getting an error when trying to launch our dashboard. I can't seem to attach an image however the error says: [{"title":"Connection Step","message":"fetchGameData"},{"title":"Build Number","message":"local"},{"title":"Commit ID","message":"not available"},{"title":"Error Message","message":"An error occurred while fetching game data."},{"title":"Error Resolution","message":"Did your game configs build without errors?"},{"title":"Error Object","message":"TypeError: Cannot read properties of undefined (reading 'activablesMetadata')"},{"title":"Stack Trace","message":"TypeError: Cannot read properties of undefined (reading 'activablesMetadata')\n at Object.action (http://localhost:5550/assets/index-UWutUHqF.js:812:37420)\n at async uye (http://localhost:5550/assets/index-UWutUHqF.js:812:4444)"}] The strangest thing is now get this error on any dashboard I launch from any server I run. Even the examples that ship with the SDK. We are using SDK 28.0. Any help trying to solve this issue will be greatly appreciated.
j
Hey, I'd expect there to be errors in the server log as well, could you check if there are any?
n
Here is a log of the server starting up, I can't see any obvious errors. https://gist.github.com/neil-trailmix/5a9cba453b772c4973d3f2bc35b6b59f
Thank you for your response. It looks like it was an issue with the Game Config data being stale and the browser cache not updating correctly. I have now managed to clear the cache, run the server and update the data config and everything is working fine.
j
Huh, that's interesting, the caching headers should auto invalidate on server start 🤔 Glad you managed to figure it out though!
just a thought, have you done a refresh after restarting the server?
n
I wasn't before - but did do in the end which lead me down this path.
j
Ah yeah, it's currently requried to refresh after the game config changes. It should show a banner at the top though that it was changed. There was a bug in r28 that in some cases did not show the banner, this was fixed in 28.1 though
n
Great thanks
3 Views