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

unable to post via webhook #2

Open
starblazr opened this issue Jan 9, 2025 · 0 comments
Open

unable to post via webhook #2

starblazr opened this issue Jan 9, 2025 · 0 comments

Comments

@starblazr
Copy link

starblazr commented Jan 9, 2025

Traceback (most recent call last):
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask/app.py", line 2464, in __call__
    return self.wsgi_app(environ, start_response)
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask/app.py", line 2450, in wsgi_app
    response = self.handle_exception(e)
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask_restx/api.py", line 671, in error_router
    return original_handler(f)
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask/app.py", line 1867, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask_restx/api.py", line 669, in error_router
    return self.handle_error(e)
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask/app.py", line 2447, in wsgi_app
    response = self.full_dispatch_request()
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask/app.py", line 1952, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask_restx/api.py", line 671, in error_router
    return original_handler(f)
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask/app.py", line 1821, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask/_compat.py", line 39, in reraise
    raise value
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask_restx/api.py", line 669, in error_router
    return self.handle_error(e)
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask/app.py", line 1950, in full_dispatch_request
    rv = self.dispatch_request()
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask/app.py", line 1936, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask_restx/api.py", line 403, in wrapper
    resp = resource(*args, **kwargs)
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask/views.py", line 89, in view
    return self.dispatch_request(*args, **kwargs)
  File "/root/OpenALPR-Webhook/venv/lib/python3.11/site-packages/flask_restx/resource.py", line 49, in dispatch_request
    resp = meth(*args, **kwargs)
  File "/root/OpenALPR-Webhook/apps/api/controller/webhook_controller.py", line 77, in post
    api_key = request.json['custom_data']['API_KEY']
TypeError: string indices must be integers, not 'str'

On webhook post, this is what gets dumped in the log.

ideas?

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