I’m using Fetch API to connect for my BackEndService.
It’s working well in video_overlay in PC.(also hosted test)
but my extension dosen’t work in mobile twitch app
I tested in devloper rig both video_overlay and mobile.
that worked very good in test. (local test)
but In hosted test, It dosen’t work. (in Twitch App)
Error message is ‘Failed to Fetch’
I thought Its problems is about CORS.
As long as it’s not a self signed cert! Then you should be good.
But it could be a SSL problem depending on what ciphers you have enabled on your server.
You’ll need to log the “failed to fetch” error out further and see what the actual issue is. It might be the toJSON that is failing and being logged as a Failed to fetch not enough of your code is here to understand what might be going on.
It’s not likely to be a CORS issue as it works on “Desktop” whoch wil apply the same CORS rules and limitations.
What am I missing? T_T
I’ve debuged video_overlay with chrome developer kit.
It’s show what I am missing from inspect network.
but in mobile, in twitch app, I cant check my packet…
I tried packet capture and show that but its incoding SSL.
I tried to decode it, I failed.
I need help… sorry…
Run your serverURL against SSLLabs SSL Server Test (Powered by Qualys SSL Labs) to test/check that it can support mobiles calling it, it might throw up a bad cipher configuration
Change $('#log').append(err); to $('#log').append(err.message); or $('#log').append(JSON.stringify(err)); to attempt to log more inforrmation. just logging err might not return anything useful to work with. Or return/append all three
Load up some test code in a browser on your phone instead, outside the TwitchApp and use the relevant debugging tools for that mobile to invetigate the issue further.
result is ‘Assessment failed: Unable to connect to the server’.
maybe it was my backend was only use https port 80. (dose it have problem?)
I changed err.message and JSON.stringify(err).
err.message returned “Failed to fetch”, and JSON.stringify(err) returend {}.
I dont know why it returned {}.