Skip to content

500 - NGINX / OpenID Connect login failure #88

@MrVidipy

Description

@MrVidipy

Hello,

I was using GrDF Gazpar for quite a while now and was working until a few days when I found error logs 500 - NGINX / OpenID Connect login failure.

When trying to use jsonSample.py to test from where it was coming, I have the same error:

An unexpected error occured while loading the data
Traceback (most recent call last):
  File "/home/user/.local/lib/python3.10/site-packages/pygazpar/client.py", line 71, in load_date_range
    res = self.__dataSource.load(pce_identifier, start_date, end_date, frequencies)
  File "/home/user/.local/lib/python3.10/site-packages/pygazpar/datasource.py", line 87, in load
    self._api_client.login()
  File "/home/user/.local/lib/python3.10/site-packages/pygazpar/api_client.py", line 107, in login
    raise ServerError(
pygazpar.api_client.ServerError: An error occurred while getting the auth token. Status code: 500 - NGINX / OpenID Connect login failure

Traceback (most recent call last):
  File "/home/user/projets/gaz/PyGazpar/samples/jsonSample.py", line 31, in <module>
    sys.exit(main())
  File "/home/user/projets/gaz/PyGazpar/samples/jsonSample.py", line 21, in main
    data = client.load_since(
  File "/home/user/.local/lib/python3.10/site-packages/pygazpar/client.py", line 59, in load_since
    res = self.load_date_range(pce_identifier, start_date, end_date, frequencies)
  File "/home/user/.local/lib/python3.10/site-packages/pygazpar/client.py", line 71, in load_date_range
    res = self.__dataSource.load(pce_identifier, start_date, end_date, frequencies)
  File "/home/user/.local/lib/python3.10/site-packages/pygazpar/datasource.py", line 87, in load
    self._api_client.login()
  File "/home/user/.local/lib/python3.10/site-packages/pygazpar/api_client.py", line 107, in login
    raise ServerError(
pygazpar.api_client.ServerError: An error occurred while getting the auth token. Status code: 500 - NGINX / OpenID Connect login failure

I have the same issue in my home assistant setup with Gazpar2HAWS where I have also the following trace :
2025-07-11 12:59:44,632 DEBUG [urllib3.connectionpool] https://monespace.grdf.fr:443 "GET /_codexch?state=%2F&error=access_denied&error_description=The+resource+owner+or+authorization+server+denied+the+request. HTTP/1.1" 500 37

Credentials are good and I can connect manually to my dashboard on grdf website.

Anybody with the same issue ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions