cyrildiagne / ar-cutpaste

Cut and paste your surroundings using AR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TypeError: Network Request failed

heyanilthakur opened this issue · comments

After running code "npm install" and scan the QR code, I got Network failure.
**Both PC and mobile are on the same network.
**Windows PC
** Expo on Android 10
In my understanding, I found that its Reactive Native which causes the problem, but I don't know how to resolve it.
Screenshot_2021-03-12-19-01-41-402_host exp exponent
Screenshot_2021-03-12-18-32-01-391_host exp exponent
Screenshot_2021-03-12-19-02-14-434_host exp exponent

Go to the Server.tsx file in the app/components folder and change the URL on the 3rd line to the address you started the server on. For me it was "http://192.168.1.2:8080".

I have already done it, but the same problem.

Go to the Server.tsx file in the app/components folder and change the URL on the 3rd line to the address you started the server on. For me it was "http://192.168.1.2:8080".

Hey you are using PC IP address or Photoshop server IP address?

PC IP address. i.e. the address used in the flask server

Also make sure that your server and app are running on the same wifi network.

Thank you. It's solved.