Giter VIP home page Giter VIP logo

Comments (3)

SimAub21 avatar SimAub21 commented on June 18, 2024 1

I have the same issue. To get to the bottom of the problem I opened the Browser Console and when I click on the button this message appears:

XHRPOST http://localhost:3000/api/v1/auth/sso/check [HTTP/1.1 500 Internal Server Error 16ms]
Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data`

The same problem seems to exist on the password reset page, when something is entered here, nothing changes on the website and the same error appears in the browser console:

XHRPOST http://localhost:3000/api/v1/auth/password-reset [HTTP/1.1 500 Internal Server Error 7ms]
Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data

from peppermint.

Nervus86 avatar Nervus86 commented on June 18, 2024

After debugging the issue, I encountered the following error in the logs :

docker logs peppermint

Error: P1000: Authentication failed against database server at 'peppermint_postgres', the provided database credentials for 'peppermint' are not valid.

Additionally, I discovered that entering the container's bash and installing lsof

docker exec -it peppermint bash
apt update && apt install lsof
lsof -i

only the port 3000 was active, not the expected port 5003,

It turned out that the root cause was related to the usage of special characters in the password of docker-compose.yml without proper escaping. Even when attempting to recreate the container, the old credentials seemed to persist.

I resolved the issue by performing the following steps:

It's important to note that this command is suitable if only the peppermint container is running in Docker. If other containers are running, it will remove them as well.

docker rm $(docker ps -aq)
docker rmi $(docker images -q)
docker volume rm $(docker volume ls -q)
docker builder prune

I hope this information proves helpful to others facing a similar issue.

from peppermint.

potts99 avatar potts99 commented on June 18, 2024

weird i'll close for now but i'll see if i can add some proofing to this

from peppermint.

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.