Test message has no 'method' or 'client' keys
See original GitHub issueHi.
When I submit message to channel via HttpClient, like so
client.send_and_consume('websocket.connect', {'value': 'my_value'}, path=url)
in consumer I get message (channels.message.Message object) without ‘method’ or ‘client’ keys (and therefore can’t transform it with AsgiRequest(msg) and such).
Could you clarify if it is a bug?
ps channels==1.1.2 asgi_redis==1.2.1
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (9 by maintainers)
Top Results From Across the Web
'str' object has no attribute 'decode'. Python 3 error?
You are trying to decode an object that is already decoded. You have a str , there is no need to decode from...
Read more >A similar object exists in test mode, but a live mode key was ...
It sounds like your while your client is using your test publishable key, your server is not using your test secret key, but...
Read more >Error Messages | Maps JavaScript API - Google Developers
The current URL loading the Maps JavaScript API has not been added to the list of allowed referrers. Please check the referrer settings...
Read more >API keys | Stripe Documentation
Stripe authenticates your API requests using your account's API keys. Stripe raises an invalid request error if you don't include a key, ...
Read more >Error codes and messages - Adyen Docs
The payment method is not set up with installment. Solution: Check the requestData . Configure installment under the specific payment method; for example,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@gyermolenko You need to add ‘query_string’ to a message, you can do this with
content
kwargAlso you need to fake
method
like in example that you give.@proofit404 Yes you right, then I support the idea of separation clients for http and websocket.
@Krukov thanks
helped a lot