Giter Club home page Giter Club logo

Comments (10)

LuchoTurtle avatar LuchoTurtle commented on May 18, 2024 3

I'll look into it.

from phoenix-chat-example.

LuchoTurtle avatar LuchoTurtle commented on May 18, 2024 1

I changed the secret through Github secrets and re-ran the job to re-deploy, shouldn't it have worked?

from phoenix-chat-example.

nelsonic avatar nelsonic commented on May 18, 2024

@LuchoTurtle do you have access to the authdemo app on Fly.io and the phoenix-chat to debug this? πŸ’­
If not, please LMK and I will add you. (sorry I don't have Fly.io open right now to check ...)

from phoenix-chat-example.

nelsonic avatar nelsonic commented on May 18, 2024

Thanks. I think it will make sense to get this working before doing the update #149
to ensure that we know it's working. πŸ‘Œ

from phoenix-chat-example.

LuchoTurtle avatar LuchoTurtle commented on May 18, 2024

Tried changing the auth_api_key secret but it didn't work.
https://github.com/dwyl/phoenix-chat-example/actions/runs/4028445385/jobs/7024474099

from phoenix-chat-example.

LuchoTurtle avatar LuchoTurtle commented on May 18, 2024

Can't replicate the issue. It works on localhost.

image

Imma keep trying

from phoenix-chat-example.

LuchoTurtle avatar LuchoTurtle commented on May 18, 2024

Fly.io logs show the following.

GET / > auth_client_id: 88SwQE3rB7oiK3HFgeZSmscEU4C2ggqraUCyyxepZi8xj5WLzBBR, msg: auth_client_id: 88SwQE3rB7oiK3HFgeZSmscEU4C2ggqraUCyyxepZi8xj5WLzBBR is not valid index in auth controller, referer: https://phoenix-chat.fly.dev/ person:6

from phoenix-chat-example.

LuchoTurtle avatar LuchoTurtle commented on May 18, 2024

Trying to get https://github.com/dwyl/auth to work but no luck. Even after setting up the ADMIN_EMAIL env, I keep getting this error:

** (ArgumentError) construction of binary failed: segment 2 of type 'binary': expected a binary but got: nil

dwyl/auth#266

from phoenix-chat-example.

nelsonic avatar nelsonic commented on May 18, 2024

Sorry, I should have been clearer. It's just the key that is invalid. This is a 1 minute fix:

Goto: https://authdemo.fly.dev/apps/10 and copy the AUTH_API_KEY variable.

Then following the instructions in: https://fly.io/docs/reference/secrets/ run the command:

flyctl secrets set AUTH_API_KEY=88Sabcdetc./88Setc./authdemo.fly.dev

Output:

Release v20 created
==> Monitoring deployment
Logs: https://fly.io/apps/phoenix-chat/monitoring

 1 desired, 1 placed, 1 healthy, 0 unhealthy [health checks: 1 total, 1 passing]
--> v20 deployed successfully

Working:

phx-chat-auth-working.mov

But that UI bug at the bottom of the page is bugging me: #151 Please fix! πŸ™

from phoenix-chat-example.

nelsonic avatar nelsonic commented on May 18, 2024

Changing the secret on GitHub will only affect the CI; the key will not be deployed/updated to Fly.io.
Invalid client_id just means the AUTH_API_KEY is invalid.
So updating it on Fly.io was my logical/immediate response.

from phoenix-chat-example.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.