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 500 when HTTP request using Rest API #2005

Open
pinguino132 opened this issue Jan 30, 2025 · 0 comments
Open

Error 500 when HTTP request using Rest API #2005

pinguino132 opened this issue Jan 30, 2025 · 0 comments

Comments

@pinguino132
Copy link

Bug report

Error 500 when trying HTTP resquests via REST API

Issue Description

Whenever I try to use the REST API http requests I get error 500 in return, the only request which works is admin login (Post - api/v1/login)
No other requests work

Preconditions

I'm using Krayin in portainer

1. framework Version: 2.0.4
2. Commit id: Using webkul/krayin docker image

Steps to reproduce

It is important to provide a set of clear steps to reproduce this bug.If relevant please include code samples.

1. Try to make an HTTP request either in postman or in the built in api docs
2. Get error 500 back

Expected result

Tell us what should happen.

  • Should either create a lead, get lead list, create person etc.

Actual result

Error 500

  • In the header credentials I tried using bearer 2|token or 2|token or just the token and all returned 500
  • Screenshots of the errors are in this folder:
  • My .env:
    APP_CURRENCY=BRL APP_DEBUG=true APP_ENV=production APP_KEY=base64:Z8LhcKm2i1Nfe6t7+BSNQ5U/Ic+roGntbRK4GhCwbcc= APP_LOCALE=pt_BR APP_TIMEZONE=America/Sao_Paulo APP_URL=https://crmex.automatizevt8.com.br CACHE_DRIVER=file DB_CONNECTION=mysql DB_DATABASE=krayin DB_HOST=mysql DB_PASSWORD=04e8e0c096a108840bbf000378a7f6b2 DB_PORT=3306 DB_PREFIX= DB_USERNAME=root L5_SWAGGER_UI_PERSIST_AUTHORIZATION=true MAIL_ENCRYPTION=tls MAIL_FROM_ADDRESS= MAIL_FROM_NAME="OrionCRM" MAIL_HOST= MAIL_MAILER=smtp MAIL_PASSWORD= MAIL_PORT= MAIL_USERNAME= REDIS_HOST=redis REDIS_PASSWORD=null REDIS_PORT=6379 SANCTUM_STATEFUL_DOMAINS="${APP_URL}" SESSION_DRIVER=file SESSION_LIFETIME=120 krayin_CADDY_ADDRESSES=:80 krayin_PUBLIC_URL=https://crmex.automatizevt8.com.br
@pinguino132 pinguino132 changed the title { "message": "admin::app.common.internal-server-error" } Error 500 when HTTP request using Rest API Jan 30, 2025
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

1 participant