couchbaselabs / couchbaselabs/sync_gateway_admin_ui

Unexpected token with mobile-training-todo sync function

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
admin-ui icebox
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.

![image](https://cloud.githubusercontent.com/assets/2589337/15713363/179fbf7a-280e-11e6-9222-301e5fd1c5b7.png)

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

![image](https://cloud.githubusercontent.com/assets/2589337/15713905/3f9f0bbe-2810-11e6-8ff1-37ce0546f659.png)

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.