Skip to content
This repository has been archived by the owner on Nov 14, 2018. It is now read-only.

404 after clicking "Sign in" on local server #31

Open
pdehaan opened this issue Feb 20, 2015 · 2 comments
Open

404 after clicking "Sign in" on local server #31

pdehaan opened this issue Feb 20, 2015 · 2 comments

Comments

@pdehaan
Copy link
Contributor

pdehaan commented Feb 20, 2015

I have a readinglist server running locally at http://localhost:8000/v0/ (which gives me the following info):

{
  "url": "http://localhost:8000",
  "documentation": "https://readinglist.rtfd.org/",
  "version": "0.3.dev0",
  "hello": "readinglist"
}

When I access the readinglist-client at http://localhost:4000/ everything looks good, except I get a message saying:

Please authenticate yourself to use this endpoint.

If I click the "Sign in" button in the Authentication panel, I get the following error:

{
    "code": 404,
    "errno": 999,
    "error": "Not Found",
    "message": "Unspecified error",
    "info": "https://github.com/mozilla/fxa-oauth-server/blob/master/docs/api.md#errors"
}

— via https://oauth-stable.dev.lcip.org/authorization?action=signin&client_id=89513028159972bc&state=474dbb999ece4c9a8a2bff1081582c1b&scope=profile

@pdehaan
Copy link
Contributor Author

pdehaan commented Feb 20, 2015

Here's my [probably useless] server output:

$ echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig:/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/:/usr/local/lib/pkgconfig:

$ make serve
.venv/bin/pserve config/readinglist.ini --reload
Starting subprocess with file monitor
Starting server in PID 23642.
serving on http://0.0.0.0:8000
2015-02-20 10:42:46,544 DEBUG [cliquet][Dummy-2] "GET /" 307 0 (1 ms)
2015-02-20 10:42:46,549 DEBUG [cliquet][Dummy-3] "GET /v0/" 200 129 (2 ms)
2015-02-20 10:42:47,052 DEBUG [cliquet][Dummy-4] "GET /favicon.ico" 307 0 (1 ms)
2015-02-20 10:42:47,097 DEBUG [cliquet][Dummy-5] "GET /v0/favicon.ico" 404 117 (1 ms)
2015-02-20 10:44:21,338 WARNI [cornice][Dummy-2] returning a json string or array is a potential security hole, please ensure you really want to do this.
2015-02-20 10:44:21,338 DEBUG [cliquet][Dummy-2] "OPTIONS /v0/articles" 200 2 (2 ms)
2015-02-20 10:44:21,412 DEBUG [cliquet][Dummy-3] "GET /v0/articles" 401 117 (1 ms)
2015-02-20 10:44:28,165 DEBUG [cliquet][Dummy-4] "GET /v0/fxa-oauth/login" 302 2 (18 ms)
2015-02-20 10:45:56,989 WARNI [cornice][Dummy-5] returning a json string or array is a potential security hole, please ensure you really want to do this.
2015-02-20 10:45:56,989 DEBUG [cliquet][Dummy-5] "OPTIONS /v0/articles" 200 2 (0 ms)
2015-02-20 10:45:57,030 DEBUG [cliquet][Dummy-2] "GET /v0/articles" 401 117 (1 ms)
2015-02-20 10:51:12,551 DEBUG [cliquet][Dummy-3] "GET /v0/fxa-oauth/login" 302 2 (7 ms)

@Natim
Copy link

Natim commented Feb 23, 2015

Yes it is a known issue, we are splitting the server and fixing it. For now you can add the /v1/ missing in the oauth server url.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants