This error originated from a custom integration.
Logger: custom_components.postnl.coordinator
Source: helpers/update_coordinator.py:290
Integration: PostNL (documentation, issues)
First occurred: 10:49:09 (49 occurrences)
Last logged: 11:37:09
Unexpected error fetching PostNL data: {'message': "You are not authorized to run this query.\nRequirement 'AssertionRequirement' was not satisfied.", 'locations': [{'line': 2, 'column': 3}]}
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 290, in _async_refresh
self.data = await self._async_update_data()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/postnl/coordinator.py", line 38, in _async_update_data
shipments = await self.hass.async_add_executor_job(graphq_api.shipments)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/postnl/graphql.py", line 158, in shipments
result = self.call(query)
^^^^^^^^^^^^^^^^
File "/config/custom_components/postnl/graphql.py", line 28, in call
return self.client.execute(query)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/gql/client.py", line 403, in execute
return self.execute_sync(
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/gql/client.py", line 221, in execute_sync
return session.execute(
^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/gql/client.py", line 860, in execute
raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': "You are not authorized to run this query.\nRequirement 'AssertionRequirement' was not satisfied.", 'locations': [{'line': 2, 'column': 3}]}