lynndylanhurley / lynndylanhurley/devise_token_auth

jToker / Devise Token Auth demo has a 500 internal error.

Open
#1,164 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

confirmed
Dominant language
Ruby
Stars
3.6k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

I was testing out the demo registering and the post was getting a 500 error.

main.js:16 POST https://devise-token-auth-demo.herokuapp.com/auth 500 (Internal Server Error)
send @ main.js:16
ajax @ main.js:16
F.emailSignUp @ main.js:34
handleRegistrationClick @ main.js:3
h @ main.js:25
executeDispatch @ main.js:32
g @ main.js:25
i @ main.js:25
l @ main.js:25
c @ main.js:32
processEventQueue @ main.js:25
c @ main.js:30
handleTopLevel @ main.js:30
e @ main.js:30
perform @ main.js:32
batchedUpdates @ main.js:28
f @ main.js:31
dispatchEvent @ main.js:30

VM534:1 Uncaught SyntaxError: Unexpected token < in JSON at position 0
    at JSON.parse (<anonymous>)
    at Function.ea.parseJSON (main.js:16)
    at F.rejectPromise (main.js:34)
    at F.error (main.js:34)
    at k (main.js:13)
    at Object.fireWith [as rejectWith] (main.js:13)
    at c (main.js:16)
    at XMLHttpRequest.b (main.js:16)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing registration from the linked jToker demo and inspecting the server-side cause of the POST /auth 500 response. Check why the error response is not valid JSON; done means registration succeeds and the demo receives a valid response.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, rails, ruby
Domain
api, authentication, backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.