Hello i am getting this error when i start my app
Authorization error: ReferenceError: Property ‘authorizedLocation’ doesn’t exist
at ?anon_0_
at tryCallOne (address at InternalBytecode.js:1:1180)
at anonymous (address at InternalBytecode.js:1:1874)
id: sandbox-sq0idb-4Sm5E8_0iHAa4xofB4RErA
location: LM50S5H4E148G
Hi! It sounds like there may have been an issue with the initial authorization.
To troubleshoot I’d recommend:
- Make sure
authorize(locationId) has completed successfully before calling getAuthorizedLocation(). The property only exists after authorization succeeds.
- Check that the
locationId you’re passing to authorize() is valid and that your OAuth token has permissions for that location.
- Add error handling around your
authorize() call — if it fails silently, subsequent calls to authorizedLocation will throw this error.
Thanks for replying me, i realized 6 hours after this post of my error