We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
from panini import app as panini_app app = panini_app.App( service_name='your-microservice-name', host='127.0.0.1', port=4222, ) @app.timer_task(interval=2) async def send_request(): for _ in range(2): message = "Str Message" response = await app.request(subject='some.subject', message=message, data_type=str) print(response) @app.listen('some.subject', data_type=str) async def subject_for_requests_listener(msg): return msg.data if __name__ == "__main__": app.start()
I'm getting this error: panini.exceptions.DataTypeError: Expected dict but got <class 'str'>
panini.exceptions.DataTypeError: Expected dict but got <class 'str'>
The text was updated successfully, but these errors were encountered:
In this case should expect <class 'str'> in response
Sorry, something went wrong.
Btw, if so - we have also the problem here in examples
artas728
No branches or pull requests
I'm getting this error:
panini.exceptions.DataTypeError: Expected dict but got <class 'str'>
The text was updated successfully, but these errors were encountered: