Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorize NotImplemented Error #24

Open
chheunpheara opened this issue Jun 20, 2024 · 0 comments
Open

Authorize NotImplemented Error #24

chheunpheara opened this issue Jun 20, 2024 · 0 comments

Comments

@chheunpheara
Copy link

chheunpheara commented Jun 20, 2024

I have an issue with AuthorizeRequest as bellow

ERROR:ocpp:Error while handling request '<Call - unique_id=1000021, action=Authorize, payload={'idTag': '123'}>'
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/ocpp/charge_point.py", line 283, in _handle_call
    handlers = self.route_map[msg.action]
               ~~~~~~~~~~~~~~^^^^^^^^^^^^
KeyError: 'Authorize'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/ocpp/charge_point.py", line 261, in route_message
    await self._handle_call(msg)
  File "/usr/local/lib/python3.12/site-packages/ocpp/charge_point.py", line 285, in _handle_call
    _raise_key_error(msg.action, self._ocpp_version)
  File "/usr/local/lib/python3.12/site-packages/ocpp/charge_point.py", line 170, in _raise_key_error
    raise NotImplementedError(
ocpp.exceptions.NotImplementedError: NotImplementedError: Request Action is recognized but not supported by the receiver,  {'cause': 'No handler for Authorize registered.'}
INFO:ocpp:wallbox: send [4,"1000021","NotImplemented","Request Action is recognized but not supported by the receiver",{"cause":"No handler for Authorize registered."}]```


My action handler below:
```@on(Action.Authorize)
    async def on_authorize(self_, id_tag):
        return call_result.Authorize(id_tag_info={'status': RegistrationStatus.accepted})```
@chheunpheara chheunpheara changed the title Authorize not Implemented Error Authorize NotImplemented Error Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant