Comments (1)
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:
-
Verify Environment Variables: Ensure that all required environment variables are correctly set in both
server/.env
andclient/.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
-
Check Docker Compose Configuration: Ensure that the
env_file
paths in yourdocker-compose.yml
are correctly pointing to the.env
files:server: env_file: - ./server/.env client: env_file: - ./client/.env
-
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
-
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)
- ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject HOT 5
- Unable to connect to localhost using pandasai postgressql connector HOT 1
- type object 'datetime.datetime' has no attribute 'datetime' HOT 1
- how to see an sql query HOT 1
- Empty dataframe is generated in code execution stage, which result in empty chart HOT 1
- Attempting to access non-existent attribute 'Figure' in plotly.express HOT 3
- Update DuckDB version to the new major release 1.0
- Generating Wrong Code HOT 3
- Unable To Generate Schema: InvalidLLMOutputType (Response validation failed!) HOT 4
- Runtime error: 'python-multipart' HOT 2
- Cant get API Key HOT 1
- Support for Gemini models via VertexAI? HOT 2
- Chart is shown despite setting open_charts config to False HOT 3
- Value Error when importing pandasai HOT 1
- Unable to train using interface HOT 2
- Error while building docker compose HOT 2
- Error: pg_config executable not found while building docker-compose HOT 3
- Type error: Cannot find module 'app/settings/logs/logs-interface' or its corresponding type declarations. during docker-compose build HOT 10
- Need support for httpx.Client method (enterprise)
- Add Support for LanceDB
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandas-ai.