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

Help: getting 404 in /authorization/token #564

Closed
pinoyoutdoor opened this issue Jul 16, 2024 · 4 comments
Closed

Help: getting 404 in /authorization/token #564

pinoyoutdoor opened this issue Jul 16, 2024 · 4 comments
Labels

Comments

@pinoyoutdoor
Copy link

having issue with /authorization/token, all other links are working (using fusio 5.1.1)

a. apache fusio.access.log = GET /authorization/token HTTP/1.1" 404

b. browser display error =

image

please help...

@chriskapp
Copy link
Member

Hi @pinoyoutdoor this looks like your base url is not correctly configured, could you check whether at the .env file your APP_URL is correct?

@pinoyoutdoor
Copy link
Author

here is my env

APP_TENANT_ID=""
APP_PROJECT_KEY="xxxxxxxxxxxxxxx"
APP_URL="https://api.ntgood.app"
APP_APPS_URL="https://api.ntgood.app/apps"
APP_ENV="prod"
APP_DEBUG="true"
APP_CONNECTION="pdo-mysql://sample:testdb123@localhost/fusio"
APP_MAILER="native://default"
APP_MESSENGER="doctrine://default"
APP_MAIL_SENDER=""
APP_MARKETPLACE="off"
SDKGEN_CLIENT_ID=""
SDKGEN_CLIENT_SECRET=""

@pinoyoutdoor
Copy link
Author

pinoyoutdoor commented Jul 17, 2024

using the fusio site demo, it has same error message "Unknowm Location"

image

@cryoaura
Copy link

I can see when I perform a POST, it works correctly in my installation, however a GET leads to the same error.

A POST should be used for this though, per documentation. I imagine a better error than a 404 would instead be 405, method GET not supported.

But to get your token, make your request a POST and provide the payload and it should work fine if everything else does.

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

3 participants