question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ionic /api/sessions error code 0

See original GitHub issue

Hello,

I am trying to integrate OpenVidu in Ionic app. I am following official tutorial. Few days ago I was able to make it work with demo link https://demos.openvidu.io:4443 .

But somehow its not working with demo link as well as local docker deployment. https://docs.openvidu.io/en/2.13.0/tutorials/openvidu-ionic/

I am getting the errors below.

Screenshot 2020-04-27 at 01 42 52 Screenshot 2020-04-27 at 01 43 33

Strange thing is POST request works fine with Intellij Restful Service `POST https://192.168.1.112:4443/api/sessions Content-Type: application/json Authorization: Basic T1BFTlZJRFVBUFA6TVlfU0VDUkVU

{ “mediaMode”: “ROUTED”, “recordingMode”: “MANUAL”, “defaultOutputMode”: “COMPOSED”, “defaultRecordingLayout”: “BEST_FIT” } `

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pabloFuentecommented, Apr 28, 2020

The error message is the best we can do. We are not generating that error message: that is what the browser natively returns.

0reactions
mujahidmasoodcommented, Apr 28, 2020

It was problems with permissions, I was not adding permission for bluetooth. But the error message is misleading.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to solve Error Code: 0, Message HTTP failure on android
Problem Solved: Basically you need to change the url on your project where you do service. Change it from localhost:3000 to 10.0.2.2:3000 ....
Read more >
Any API call returns status code 0 - Ionic Forum
I'm new to Ionic and will be working on a legacy Android project. As far as I know, I installed everything I need...
Read more >
Releases - Docs - OpenVidu
status.avgLoad had an invalid JSON value when numNodes was 0. COMPOSED recordings: characters of non-european fonts could not be properly displayed in ...
Read more >
openvidu-ionic
A client-side only application built with Ionic v4 and Angular 8 frameworks. It can be compiled into a native Android app, a native...
Read more >
Get Sessions | Infinite Flight
Sample Response. {. "errorCode": 0, ... Response Type: application/json. Name, Type, Description. errorCode, integer, Enum: "Ok = 0" , "UserNotFound = 1" ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found