Whenever i open my profile on the mainnet and share the link. It displays a blank page and shows this error on inspection:
index.js:2 Error: Principal "aaaaa-aa" does not have a valid checksum (original value "" may not be a valid Principal ID).
Whenever i open my profile on the mainnet and share the link. It displays a blank page and shows this error on inspection:
index.js:2 Error: Principal "aaaaa-aa" does not have a valid checksum (original value "" may not be a valid Principal ID).
Sharing other links as well brought up errors regarding the Content-Security-Policy and Permissions-Policy which were fixed and led us to this error;
index.js:2 TypeError: Cannot read properties of undefined (reading 'points')
Commenting out this Point object, it just complains about the next one.
To confirm, which links are you are sharing?
Links like the profile page, tournament page and the likes. Buts its fixed already, seems its a react issue.
Could you walk me through how did you resolve it?
Looks like @Nailer was having the same issue?
Yes, although @Nailer is part of my team.
Well, the error started off with ;
it violates the following Content Security Policy directive: "font-src *". Note that '*' matches only URLs with network schemes ('http', 'https', 'ws', 'wss'), or URLs whose scheme matches self's scheme. The scheme 'data:' must be added explicitly.
solved this by adding "font-src 'self' https: data:;"
to the Content-Security-Policy in ic-assets.json5 file
.
Then this error message came up after fixing the CSP;
Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.Understand this warning Error with Permissions-Policy header: Unrecognized feature: 'battery'.Understand this warning
Fixed this in the “Permissions-Policy” by removing the unrecognized features.
The issue with the properties undefined is just issues with react and improper handling of errors.
Thats it, i think.