Http failure response for (unknown url)

Http failure response for (unknown url)

by Jürgen Späth -
Number of replies: 3

I cloned and built the moodleapp (integration as well as master branch) by using npm setup and npm run prod:android.

When I connect with any moodle instance (e.g. school.moodledemo.net) I get the error when accessing content in a course

Http failure response for (unknown url): 0 Unknown error 

The moodleapp from play store works fine.

I tested with emulator as well as with a real device by building a release apk.

This seems to be a CORS problem, but what I am asking myself: Where is the difference between the play store app and the github app?

What changes do I have to make?


Average of ratings: -
In reply to Jürgen Späth

Re: Http failure response for (unknown url)

by Pravinkumar Putta -

I'm facing the same issue after checkout source code. 

But moodle app v3.9.2 from the play store works perfectly.

If the same source code is used for the official app. Then why it's behaving differently.

Does anyone know the solution for this?

In reply to Pravinkumar Putta

Re: Http failure response for (unknown url)

by Afonso Henrique Anastácio Calábria -

I'm also getting this same error. There is something I noticed, that the error just happens when the activity is a page. Other ones like forum works normally. I dont know why.

In reply to Afonso Henrique Anastácio Calábria

Re: Http failure response for (unknown url)

by Addisu Massk -

I've stacked because of this error. It's ok with other resources like file and so on... but, it happens when I use page resource. Have you got any solution, please? Appreciate your help!