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

error reading JWE_PRIVATE_KEY #42

Open
dianacamacho opened this issue Nov 12, 2021 · 0 comments
Open

error reading JWE_PRIVATE_KEY #42

dianacamacho opened this issue Nov 12, 2021 · 0 comments
Labels

Comments

@dianacamacho
Copy link
Contributor

When following the migration guide instructions to generate and copy the RSA key for the new JWE_PRIVATE_KEY env var, getting "LpTokenAuth::Error - Your private key is formatted incorrectly."

Sounds like @dschadd is already aware and working on a fix, but just adding details here for doc purposes

2021-11-12T22:08:07.898053+00:00 app[web.1]: I, [2021-11-12T22:08:07.897963 #4]  INFO -- : [67ccc09e-73d0-44af-9d60-30f606433012] Started POST "/api/v1/login" for 73.45.218.16 at 2021-11-12 22:08:07 +0000
2021-11-12T22:08:07.899686+00:00 app[web.1]: I, [2021-11-12T22:08:07.899590 #4]  INFO -- : [67ccc09e-73d0-44af-9d60-30f606433012] Processing by Api::V1::SessionsController#create as JSON
2021-11-12T22:08:07.899729+00:00 app[web.1]: I, [2021-11-12T22:08:07.899699 #4]  INFO -- : [67ccc09e-73d0-44af-9d60-30f606433012]   Parameters: {"member"=>{"email"=>"[email protected]", "password"=>"[FILTERED]"}, "session"=>{"member"=>{"email"=>"[email protected]", "password"=>"[FILTERED]"}}}
2021-11-12T22:08:11.905298+00:00 heroku[router]: at=info method=POST path="/api/v1/login" host=uolf-staging.herokuapp.com request_id=67ccc09e-73d0-44af-9d60-30f606433012 fwd="73.45.218.16" dyno=web.1 connect=0ms service=4010ms status=401 bytes=736 protocol=https
2021-11-12T22:08:11.900733+00:00 app[web.1]: E, [2021-11-12T22:08:11.900653 #4] ERROR -- : [67ccc09e-73d0-44af-9d60-30f606433012] LpTokenAuth::Error - Your private key is formatted incorrectly.
2021-11-12T22:08:11.901255+00:00 app[web.1]: E, [2021-11-12T22:08:11.901202 #4] ERROR -- : [67ccc09e-73d0-44af-9d60-30f606433012] app/controllers/api/v1/sessions_controller.rb:11:in `create'
2021-11-12T22:08:11.902055+00:00 app[web.1]: I, [2021-11-12T22:08:11.902005 #4]  INFO -- : [67ccc09e-73d0-44af-9d60-30f606433012] [active_model_serializers] Rendered ActiveModel::Serializer::Null with Hash (0.09ms)
2021-11-12T22:08:11.902370+00:00 app[web.1]: I, [2021-11-12T22:08:11.902315 #4]  INFO -- : [67ccc09e-73d0-44af-9d60-30f606433012] Completed 401 Unauthorized in 4003ms (Views: 0.8ms | ActiveRecord: 0.0ms | Allocations: 11489)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant