Help needed!
-
binvin
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
7 years 5 months ago #6190
by binvin
Hi,
Thank you very much for this wonderful product!
I have downloaded the community version and have been trying to use the jBackApp Cordova files to see if my site works fine at the basic level.
While I have updated the services.js with my site's endpoint urls, every time I run the build, I get the following message:
Error reading section content
Please check your network connection
This happens only when I use my URLs. When I use your default URLs, it works fine.
I have tested my endpoint URLs in POSTMAN and it works fine. I have checked the response.json also. And I also see the details in the jbackend logs in my site's backend.
But when I use it in this sample Cordova project it fails and I don't see it hitting my site also (nothing is logged in logs).
Could you please help me in this? What could be the source of this problem.
Any help would be great.
Thanks.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 5 months ago #6193
by admin
Hi and thanks.
I am not sure with the information provided, but if you are running the app in the web browser maybe it could be a problem related to CORS protection.BTW, if you enable the debugger (e.g. F12 within chrome) you should be able to see what happens...
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
binvin
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 2
-
Thank you received: 0
-
-
7 years 5 months ago #6194
by binvin
Hi Luigi,
Thank you very much for your reply.
I am using Microsoft Visual Studio for building the project and yes I use browser to view the app.
Interestingly, using the debugger, I found the following error message:
http://localhost:4400/ripple/xhr_proxy?tinyhippos_apikey=ABC&tinyhippos_rurl=https%3A//www.*****.***/myapp/get/content/articles%3Fcatid%3D78%26maxsubs%3D2%26limit%3D10
Failed to load resource: the server responded with a status of 403 (Forbidden)
This encoded url gives error in POSTMAN as well.
But the same URL when decoded ( https://www.*****.***/myapp/get/content/articles?catid=78&maxsubs=2&limit=10) gives expected response.
I am trying to figure out how to fix this.
Thank you very much for pointing me in the correct direction.
If you have any hints about this issue, please do share.
Thank you very much
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 5 months ago #6195
by admin
As I suspected your problem is related to CORS problems on the Ripple emulator. Take a look at this article to figure out how you could fix it. BTW, I don't use Ripple, but Chrome with security disabled or sometimes ionic with local proxy:
blog.ionic.io/handling-cors-issues-in-ionic/
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.142 seconds