something about FetchAPI #286
Replies: 2 comments 2 replies
-
Can you run Zepp OS Simulator normally? I suggest simulating it in the emulator. If the request fails, you can find the error message in the Console Network panel. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Please provide the code where the problem occurred, including the server-side. Could it be a problem with HTTPS and HTTP? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Apology
Honestly I don't familiar with FetchAPI or something about HTTP requests. So this question might be confusing, I'm sorry for that but I don't know how to continue. This problem doesn't seem to have much to do with zeppOS, I don't really know where the problem lies. if this question is Inappropriate to be asked at here, I will delete it as soon as possible.
Question Description
I have searched relevant documents and downloaded samples program of FetchAPI. And when I use it to POST to postbin, postbin did recieved my text. So I tried modifying the
url
to my own server (http://cantiane.top/heartrate.php This page can be opened normally),the php code of this is here:
I tried to post using this (same as the sample provided):
but when I click the button on my device, the server has no react(it should print'POST SUCCESS' in my expectation and the network is connected normally)
Please let me know if you need any additional information.
Beta Was this translation helpful? Give feedback.
All reactions