OkunaOrg / okuna-api

🤖 The Okuna Social Network API
https://okuna.io
MIT License
240 stars 78 forks source link

Adding asgi to the api settings causes error 400 on app #730

Open alsiPanda opened 4 years ago

alsiPanda commented 4 years ago

This is not strictly an error and might be an related to okuna-app even, I was trying to see if I can add chat to the current okuna using django channels. After following the channel docs and couple of GitHub projects, I made relevant changes, like adding asgi_application and channels-redis to settings, asgi.py, routing.py to openbook. As a result api on reinstall starts listening on port 80 as usual. The admin panel also can be accessed on browser, but the flutter app stops communicating and keeps giving error 400. Any ideas on what could be causing the issue. Some articles suggest it could be due to multipart header. But as an amateur, I am not sure. @lifenautjoe , any hint would be appreciated.

alsiPanda commented 4 years ago

@lifenautjoe is there any way to figure out exactly what is wrong that I can try, since neither django not flutter logs are giving any errors

alsiPanda commented 4 years ago

@lifenautjoe Any way to found out what is causing the 400 error ? Any particular files I should look into ?

kitlu007 commented 4 years ago

@Komposten @lifenautjoe

Hello team,

Could be of help to us please ? I understand you guys are hard pressed by time to launch the okuna web, but a little help could be useful.