Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

t: GraphQL error: userId is not set via query string. #209

Closed
MrOrz opened this issue Jan 1, 2020 · 2 comments · Fixed by #228
Closed

t: GraphQL error: userId is not set via query string. #209

MrOrz opened this issue Jan 1, 2020 · 2 comments · Fixed by #228
Assignees
Labels

Comments

@MrOrz
Copy link
Member

MrOrz commented Jan 1, 2020

View details in Rollbar: https://rollbar.com/mrorz/rumors-site/items/62/


t: userId is not set via query string.
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in t
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in next
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in b
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in g
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in value
  File "[native code]", line unknown, in forEach
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in next
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in b
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in g
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in value
  File "[native code]", line unknown, in value
  File "[native code]", line unknown, in forEach
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in [anonymous]
  File "[native code]", line unknown, in forEach
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in next
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in b
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in g
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in value
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in [anonymous]
  File "[native code]", line unknown, in promiseReactionJob

image

@MrOrz
Copy link
Member Author

MrOrz commented Feb 23, 2020

It turns out that it is because users are trying to vote replies or reply requests while they are not logged in.

Voting replies

image

Voting reply requests

image

@MrOrz MrOrz changed the title t: GraphQL error: userId is not set via query string. GraphQL error: fromUserOfArticleId does not match any existing articles Mar 2, 2020
@MrOrz MrOrz changed the title GraphQL error: fromUserOfArticleId does not match any existing articles t: GraphQL error: userId is not set via query string. Mar 2, 2020
@MrOrz
Copy link
Member Author

MrOrz commented Mar 2, 2020

According to 0206 discussion let's catch this error and use alert() that tells user to login for now.

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

Successfully merging a pull request may close this issue.

1 participant