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

cordovaHTTP.get sends no data but claims internal server error (500) #163

Open
R-obert opened this issue Mar 30, 2020 · 0 comments
Open

Comments

@R-obert
Copy link

R-obert commented Mar 30, 2020

Hello,

I'm trying to send a GET request from my Android emulator to the laptop on which the emulator is running:

cordovaHTTP.get(
            "http://10.0.2.2:80/",
            {},
            {},
            function(response) {
                console.log('success called');
            },
            function(error_response) {console.log('error called'); console.log(error_response.status);}
        );

The error callback gets called and the status code is 500. But on my laptop I can see with tcpdump that no packages are even received. Why does cordovaHTTP claim that the problem is on the server side and how do I track down the cause of this?

Note that when I use Google Chrome on the emulator and navigate to "http://10.0.2.2:80/" everything works fine, I see the dummy page of the Apache2 webserver which is installed on my laptop.

Best regards,
Robert

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