couchbaselabs / couchbaselabs/sync_gateway_admin_ui
Unexpected token with mobile-training-todo sync function
- Dominant language
- JavaScript
- Stars
- 15
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
When loading the admin UI with this sync function (https://github.com/couchbaselabs/mobile-training-todo/blob/master/sync-gateway-config.json) an exception is thrown and doesn't load the document in the database.
The first xhr call happening when loading the page is `http://localhost:4985/todo/_config` which returns the sync function in the JSON response. The error message in Chrome debugger is `VM179:221 Uncaught SyntaxError: Unexpected token ;`. The exception is thrown because of the semi-column below.

When I remove all semicolons and restart SG, the following errors are thrown.

I don't know what's happening at this point. Sync Gateway runs fine but the admin UI doesn't load.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.