wind-python / windpowerlib

The windpowerlib is a library to model the output of wind turbines and farms.
https://oemof.org/
MIT License
330 stars 105 forks source link

Problems with database connection #108

Closed uvchik closed 4 years ago

uvchik commented 4 years ago

I improved the error message to understand the reason. Now we get the following error message:

ConnectionError: Database (oep) connection not successful. 
URL: http://oep.iks.cs.ovgu.de//api/v0/schema/supply/tables/wind_turbine_library/rows/?
Response: [400] 
{"reason": "Connection limit for anonymous users is exceeded. Please login to get your own connection pool."}

How shall we deal with it?

Ludee commented 4 years ago

Seems like the limit of anon connections to the OEP is exceeded. Busy day ;)

One simple solution is to include the user/token input in the code. The need to create a good template and improve the documentation for this is obvious.

You can find the API-Tutorials here: https://openenergy-platform.org/tutorials/

Here is the party with the token: https://openenergy-platform.org/tutorials/61201725-493f-4dd0-b9aa-6e0f6d6aa550/

ciaradunks commented 4 years ago

I have received the same message today for trying to get weather data from open_FRED, does this mean that I need to follow the above tutorials and sign up/get a token? Or will it work if I try another day when the limit for connections hasn't been exceeded? Thanks

uvchik commented 4 years ago

By now the bug is resolved but it can occur again. We should talk about the OEP connection in general.

uvchik commented 4 years ago

It might have been a single event, so we may keep everything as it is until it happens again.