Giter Club home page Giter Club logo

Comments (29)

acheong08 avatar acheong08 commented on June 5, 2024 1

export can be put in .env and then source .env. It doesn't really matter. Just need environment variables set

from chatgptproxy.

acheong08 avatar acheong08 commented on June 5, 2024 1
export ACCESS_TOKEN="..."
export PUID="..."
source .env

from chatgptproxy.

zyh1222 avatar zyh1222 commented on June 5, 2024

Same issue. Did you find the solution?

from chatgptproxy.

acheong08 avatar acheong08 commented on June 5, 2024

Use environment variables.

from chatgptproxy.

acheong08 avatar acheong08 commented on June 5, 2024

Remember to export ACCESS_TOKEN="..." && export PUID="..."

from chatgptproxy.

fmunim avatar fmunim commented on June 5, 2024

Use environment variables.

So I should create an .env with ACCESS_TOKEN and PUID? Or use export? @acheong08

from chatgptproxy.

fmunim avatar fmunim commented on June 5, 2024

export can be put in .env and then source .env. It doesn't really matter. Just need environment variables set

It worked but I get this

 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /ping                     --> main.main.func2 (3 handlers)
[GIN-debug] GET    /api/*path                --> main.proxy (3 handlers)
[GIN-debug] POST   /api/*path                --> main.proxy (3 handlers)
[GIN-debug] PUT    /api/*path                --> main.proxy (3 handlers)
[GIN-debug] PATCH  /api/*path                --> main.proxy (3 handlers)
[GIN-debug] HEAD   /api/*path                --> main.proxy (3 handlers)
[GIN-debug] OPTIONS /api/*path                --> main.proxy (3 handlers)
[GIN-debug] DELETE /api/*path                --> main.proxy (3 handlers)
[GIN-debug] CONNECT /api/*path                --> main.proxy (3 handlers)
[GIN-debug] TRACE  /api/*path                --> main.proxy (3 handlers)
2023/03/20 01:40:20 793256 :8080
Got response: 401 Unauthorized
Error: 401 Unauthorized
{"detail":{"message":"Could not parse your authentication token. Please try signing in again.","type":"invalid_request_error","param":null,"code":"invalid_jwt"}}
Error: Failed to refresh puid cookie

from chatgptproxy.

fmunim avatar fmunim commented on June 5, 2024

@acheong08 Any update on this? I would be appreciative if you could let me know how to get this to work.

from chatgptproxy.

acheong08 avatar acheong08 commented on June 5, 2024

Got response: 401 Unauthorized
Error: 401 Unauthorized
{"detail":{"message":"Could not parse your authentication token. Please try signing in again.","type":"invalid_request_error","param":null,"code":"invalid_jwt"}}
Error: Failed to refresh puid cookie

It seems your access token is invalid. Try copy and pasting the full thing properly (It has some breaks so it might not have been copied correctly)

from chatgptproxy.

fmunim avatar fmunim commented on June 5, 2024

Got response: 401 Unauthorized
Error: 401 Unauthorized
{"detail":{"message":"Could not parse your authentication token. Please try signing in again.","type":"invalid_request_error","param":null,"code":"invalid_jwt"}}
Error: Failed to refresh puid cookie

It seems your access token is invalid. Try copy and pasting the full thing properly (It has some breaks so it might not have been copied correctly)

Its a really big thing, so I am not sure how else to paste it properly. It would be really nice if you could just set it on a .env and it would work. I tried sourcing my .env but its not working.

from chatgptproxy.

acheong08 avatar acheong08 commented on June 5, 2024

You're meant to put it in .env. It just seems that you didn't copy it correctly to the .env either

from chatgptproxy.

fmunim avatar fmunim commented on June 5, 2024

You're meant to put it in .env. It just seems that you didn't copy it correctly to the .env either

l

This is the wrong way?

from chatgptproxy.

acheong08 avatar acheong08 commented on June 5, 2024

Remember to put export in the .env file

from chatgptproxy.

acheong08 avatar acheong08 commented on June 5, 2024

And check access token validity via https://jwt.io/

from chatgptproxy.

fmunim avatar fmunim commented on June 5, 2024

Remember to put export in the .env file

So it would be export access_token && export puid?

from chatgptproxy.

fmunim avatar fmunim commented on June 5, 2024
export ACCESS_TOKEN="..."
export PUID="..."
source .env

@acheong08 Thanks for the instructions but I get a new error, Now it says 500 internal server error.

Hmm2

from chatgptproxy.

fmunim avatar fmunim commented on June 5, 2024

@acheong08 Any further help on this? ;-;

from chatgptproxy.

acheong08 avatar acheong08 commented on June 5, 2024

Internal Server Error means OpenAI is having issues

from chatgptproxy.

fmunim avatar fmunim commented on June 5, 2024

Internal Server Error means OpenAI is having issues

Ok lemme try again now

from chatgptproxy.

fmunim avatar fmunim commented on June 5, 2024

@acheong08 Still Getting 403 forbidden error, failed to refresh PUID

from chatgptproxy.

jhonroxton avatar jhonroxton commented on June 5, 2024

what is puid

from chatgptproxy.

jhonroxton avatar jhonroxton commented on June 5, 2024

what is puid

from chatgptproxy.

fmunim avatar fmunim commented on June 5, 2024

@acheong08 Any update on this issue?

from chatgptproxy.

acheong08 avatar acheong08 commented on June 5, 2024

export can be put in .env and then source .env. It doesn't really matter. Just need environment variables set

It worked but I get this

 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /ping                     --> main.main.func2 (3 handlers)
[GIN-debug] GET    /api/*path                --> main.proxy (3 handlers)
[GIN-debug] POST   /api/*path                --> main.proxy (3 handlers)
[GIN-debug] PUT    /api/*path                --> main.proxy (3 handlers)
[GIN-debug] PATCH  /api/*path                --> main.proxy (3 handlers)
[GIN-debug] HEAD   /api/*path                --> main.proxy (3 handlers)
[GIN-debug] OPTIONS /api/*path                --> main.proxy (3 handlers)
[GIN-debug] DELETE /api/*path                --> main.proxy (3 handlers)
[GIN-debug] CONNECT /api/*path                --> main.proxy (3 handlers)
[GIN-debug] TRACE  /api/*path                --> main.proxy (3 handlers)
2023/03/20 01:40:20 793256 :8080
Got response: 401 Unauthorized
Error: 401 Unauthorized
{"detail":{"message":"Could not parse your authentication token. Please try signing in again.","type":"invalid_request_error","param":null,"code":"invalid_jwt"}}
Error: Failed to refresh puid cookie

It means the access token you sent is invalid

from chatgptproxy.

acheong08 avatar acheong08 commented on June 5, 2024

@acheong08 Still Getting 403 forbidden error, failed to refresh PUID

You need to put PUID and access token

from chatgptproxy.

acheong08 avatar acheong08 commented on June 5, 2024

what is puid

a cookie

from chatgptproxy.

acheong08 avatar acheong08 commented on June 5, 2024

and if it continues to return internal server error, it might mean something is wrong with your PUID or access token

from chatgptproxy.

fmunim avatar fmunim commented on June 5, 2024

and if it continues to return internal server error, it might mean something is wrong with your PUID or access token

Very weird since my puid and access token works for other bots I host. Not sure what’s wrong here.

from chatgptproxy.

02000823 avatar 02000823 commented on June 5, 2024

and if it continues to return internal server error, it might mean something is wrong with your PUID or access token

怎么获得PUID

from chatgptproxy.

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.