Development GuidesDebugging And Troubleshooting

Debugging And Troubleshooting

The usual reasons an app misbehaves, and how to tell which one you have.

Start with the symptom, then follow the cause. For every error code, see Error Codes.

The Page Works In A Browser But Not In Aksa

SymptomLikely causeWhat to do
Buttons do nothing in AksaAn inline handler such as onclick="...". The host's security policy blocks it.Use addEventListener. The automatic checks flag this.
A script or image does not loadAn external URL. The policy is default-src 'none'.Embed it in the file. See Security Rules.
Saved data is gone after reopeningYou used localStorage in a sandbox where it may not persist.Save through storage.set. See storage.set.
fetch failsNo network origin is declared.Declare it in data.network.allow, and expect review.

A Bridge Call Fails

CodeMeaningWhat to do
-32601The host does not know the method.The person has an older Aksa. Feature-check and fall back.
-32602A parameter is wrong.Check the types and limits on the method's page.
4001The person said no.Hide the feature. Do not ask again in a loop.
4200Not available here.Use a fallback. Reserved methods always answer this today.
4290Too many requests.Save on change, and space calls out.

The Person Is Not In An Action

context.get returns an actionId only when the app was opened from an Action. If it is missing, the person opened the app from somewhere else. Let them use the app, and show how to link an Action instead of failing.

Live Serving & Listing Issues

SymptomLikely causeWhat to do
Universal link says unavailableApp is unlisted (unpublished), suspended, or lacks an approved liveVersion + ageRating.Run Live Debugger in Developer Studio and check Applications -> Settings.
Wrong link shared outside AksaShared apps.aksaspace.com/app/<id> (serve origin) instead of aksaspace.com/app/<id>.Always share https://aksaspace.com/app/<id> or your /apps/<id> catalog page.
App missing from /apps catalogShow In Public Catalog is off, or the app is not currently live with an ageRating.Enable Show In Public Catalog in Applications -> Settings.

Testing

  • Use App Checker and the Simulator (including scope permission toggles) in Local Testing before every submission.
  • Open the page as a plain file to check layout. AksaMini falls back to the browser, so the app still runs; direct bridge calls reject with code: "no_host".
  • Test with data from an older version. Clear your storage once, and once keep an old save, and check that both work.
  • Check the page at 390 pixels wide. Most people open mini apps on a phone.
  • After publishing, verify serving health with Live Debugger (#debugger).

Still Stuck

Ready To Build Or Ship?

Check your files, preview on an iPhone frame, and submit in the Developer Studio.