Skip to content

Can't access jprq from Flutter #164

@XantaKross

Description

@XantaKross

I've been developing a flutter app in Android studio for sometime now. And I created the backend using pycharm and django.

What I've done until now:

  • I can access jprq site from any browser with no issues. with the url from terminal. (JPRQ works in browser)
  • I can't access the same jprq site from flutter, not matter how I change the url from terminal (Tried http://, https://, name.jprq.live:80//, etc). (Changing url doesn't work.)
  • Finally I tried accessing other sites from the same flutter methods (from dart pub: http.get(), dio.get()) and I can access them. Like I do get a http response. (Flutter methods do access other sites with no issues.)
  • The debugger doesn't register any request when I try accessing it from flutter but it does register a request when I access it from a browser.
  • The error I get in my flutter terminal is 400 Bad request.
  • I've checked flutter docs there is nothing there that gives me a clue.
  • I tried connecting my server in a different network and my app (which is now in my phone) in a different network. Still the same error when I request it from http.get() or dio.get()

I do not understand what all of these means it is quite frankley very very confusing.
Can someone help asap, I need to complete this project soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions