Giter Site home page Giter Site logo

Comments (1)

dosubot avatar dosubot commented on July 22, 2024 3

The error message "Something went wrong fetching credentials, please refresh the page" suggests an issue with the credentials setup in your .env files. Here are a few steps to troubleshoot this:

  1. Verify Environment Variables: Ensure that all required environment variables are correctly set in both server/.env and client/.env files. The necessary variables are:

    • PANDASAI_API_KEY
    • POSTGRES_URL
    • TEST_POSTGRES_URL
    • ENVIRONMENT
    • DEBUG
    • SHOW_SQL_ALCHEMY_QUERIES

    Example for server/.env:

    POSTGRES_URL=postgresql+asyncpg://pandasai:password123@postgresql:5432/pandasai-db
    TEST_POSTGRES_URL=postgresql+asyncpg://pandasai:password123@postgresql:5432/pandasai-db
    PANDASAI_API_KEY=YOUR_PANDASAI_API_KEY
    ENVIRONMENT=development
    DEBUG=1
    SHOW_SQL_ALCHEMY_QUERIES=0
  2. Check Docker Compose Configuration: Ensure that the env_file paths in your docker-compose.yml are correctly pointing to the .env files:

    server:
      env_file:
        - ./server/.env
    
    client:
      env_file:
        - ./client/.env
  3. Logs for Debugging: Check the logs for any errors related to credential fetching. The Session class in pandas-ai logs errors when a request fails, which can help diagnose issues:

    except requests.exceptions.RequestException as e:
        self._logger.log(f"Request failed: {traceback.format_exc()}", logging.ERROR)
        raise PandasAIApiCallError(f"Request failed: {e}") from e
  4. Docker Compose Services: Ensure that all services (postgresql, server, client) are up and running without errors. You can check the status and logs of each service using:

    docker compose ps
    docker compose logs <service_name>

By following these steps, you should be able to identify and resolve the issue with credential fetching. If the problem persists, further investigation into the specific logs and configurations may be necessary [1][2][3][4].

To continue talking to Dosu, mention @dosu.

from pandas-ai.

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.