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

Internal error / JSON::ParserError (859: unexpected token at ''): #76

Open
silviu001 opened this issue Jan 17, 2023 · 1 comment
Open

Comments

@silviu001
Copy link

silviu001 commented Jan 17, 2023

Hello,

I am running Redmine 5.0.4.stable (docker hub official image). I have installed redmine_openid_connect version 0.9.4 and configured a Keycloak instance for OpenID Connect SSO. I have checked the Keycloak JWT generated token and it contains every attributed described in the README. After I authenticate my user I get Internal error and redmine logging (debug) outputs:

I, [2023-01-17T09:47:48.703454 #1] INFO -- : Completed 500 Internal Server Error in 30ms (ActiveRecord: 2.9ms | Allocations: 2442)
F, [2023-01-17T09:47:48.704098 #1] FATAL -- :
JSON::ParserError (859: unexpected token at ''):

plugins/redmine_openid_connect/app/models/oic_session.rb:125:in get_user_info!' plugins/redmine_openid_connect/lib/redmine_openid_connect/account_controller_patch.rb:83:in oic_local_login'
lib/redmine/sudo_mode.rb:61:in `sudo_mode'

What can I do further to overcome this issue? If necessary I can provide extra information if necessary.

Thanks,
Silviu.

My full environment:

Environment:
Redmine version 5.0.4.stable
Ruby version 3.1.3-p185 (2022-11-24) [x86_64-linux]
Rails version 6.1.7
Environment production
Database adapter PostgreSQL
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery smtp
Redmine settings:
Redmine theme Default
SCM:
Subversion 1.14.1
Mercurial 5.6.1
Bazaar 3.1.0
Git 2.30.2
Filesystem
Redmine plugins:
redmine_openid_connect 0.9.4

@bilelzr
Copy link

bilelzr commented Feb 6, 2023

can you provide me the configuration on the plugin

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

No branches or pull requests

2 participants