Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71232

Capacitor Newtwork Error with axios

$
0
0

Hello guys, I am currently building an appliaction with a microcontroller. Long story short the MCU is an accesspoint. The IPhone connects with the MCU makes an request and waits for an response.

Strangely the MCU gets the right data from the request which I made with axios, but then I get an error message as the response.

{“message”:“Network Error”,“name”:“Error”,“stack”:“createError@capacitor://localhost/src_app_hub-overview_hub-overview_module_ts.js:830:24\nhandleError@capacitor://localhost/src_app_hub-overview_hub-overview_module_ts.js:209:25\nwrapFn@capacitor://localhost/polyfills.js:4622:48\nonInvokeTask@capacitor://localhost/vendor.js:90774:43\n@capacitor://localhost/polyfills.js:4024:61\n@capacitor://localhost/polyfills.js:4335:45\ninvokeTask@capacitor://localhost/polyfills.js:5475:24\nglobalZoneAwareCallback@capacitor://localhost/polyfills.js:5501:31”,“config”:{“transitional”:{“silentJSONParsing”:true,“forcedJSONParsing”:true,“clarifyTimeoutError”:false},“transformRequest”:[null],“transformResponse”:[null],“timeout”:0,“xsrfCookieName”:“XSRF-TOKEN”,“xsrfHeaderName”:“X-XSRF-TOKEN”,“maxContentLength”:-1,“maxBodyLength”:-1,“headers”:{“Accept”:“application/json, text/plain, /”,“Content-Type”:“application/x-www-form-urlencoded”},“method”:“post”,“url”:“http://10.10.10.1:80/hello",“responseType”:“text”,“data”:"{\r\n"ssid":“LUKAS”,\r\n"password":“DUHN”\r\n}"},"status”:null}

I cannot find anything on the internet.

Cheers :slight_smile: and thanks

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 71232

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>