ConnectyCube / connectycube-flutter-sdk-releases

ConnectyCube Flutter SDK Releases
7 stars 1 forks source link

ArgumentError (Invalid argument(s)) createCallSession #31

Closed oussamaelhajoui closed 3 years ago

oussamaelhajoui commented 3 years ago

Platform (use [x]) [ ] Android [X] iOS

Device info Manufacture: APPLE Model: IPHONE 12 pro OS version: 14.3

ConferenceSession session = await callClient.createCallSession(user.id, callType);

throws the following error

Exception has occurred.
ArgumentError (Invalid argument(s))

Logs:

Restarted application in 1,047ms.
flutter: CB-SDK: : =========================================================
flutter: === REQUEST ==== c446eab8-572b-4b60-a2d4-d37680032505 ===
flutter: REQUEST
flutter:   POST https://api.connectycube.com/session
flutter: HEADERS
flutter:   {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 1.0.0, CB-Token: }
flutter: BODY
flutter:   {"application_id":"3962","auth_key":"OT3CCpG9xxxx","nonce":"2005113771","timestamp":"1609846503","signature":"07e4a3dc4748cefcc7c7c4ab26a8160dfc454bf7"}
flutter:
flutter: CB-SDK: : *********************************************************
flutter: *** RESPONSE *** 201 *** c446eab8-572b-4b60-a2d4-d37680032505 ***
flutter: HEADERS
flutter:   {connection: keep-alive, cache-control: max-age=0, private, must-revalidate, set-cookie: _mkra_ctxt=fd4bd37a861a8b42780cbe2347c354e1--201; path=/; max-age=5; HttpOnly; secure, status: 201 Created, transfer-encoding: chunked, date: Tue, 05 Jan 2021 11:35:04 GMT, access-control-allow-origin: *, strict-transport-security: max-age=31536000,max-age=15768000;, content-type: application/json; charset=utf-8, x-xss-protection: 1; mode=block, server: nginx/1.16.1, x-request-id: 342a1244-b262-4b29-969d-ac66b0504b23, cb-token-expirationdate: 2021-01-05 13:35:03 UTC, connectycube-rest-api-version: 0.1.1, x-runtime: 0.023320, etag: W/"b9c374d270b8972f29871858d26cae5c", x-frame-options: SAMEORIGIN, x-content-type-options: nosniff}flutter: HEADERS
flutter:   {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 1.0.0, CB-Token: fa514fddd0cd24ba0467e05199d64154b1000f7a}
flutter: BODY
flutter:   {"login":"EE2F23E8-0112-476C-9EDE-28772D1BC5A6","password":"password"}
flutter:
flutter: CB-SDK: : *********************************************************
flutter: *** RESPONSE *** 202 *** b6ab5ae8-b913-4c5a-bcc6-eb1d64a619ce ***
flutter: HEADERS
flutter:   {connection: keep-alive, cache-control: no-cache, set-cookie: _mkra_ctxt=c40b86595ba9ebdfe2bdf4eaa06fd2f6--202; path=/; max-age=5; HttpOnly; secure, status: 202 Accepted, transfer-encoding: chunked, date: Tue, 05 Jan 2021 11:35:05 GMT, access-control-allow-origin: *, strict-transport-security: max-age=31536000, content-type: application/json; charset=utf-8, x-xss-protection: 1; mode=block, server: nginx/1.16.1, x-request-id: 94486753-e3ae-4207-944c-8c2c06a10d5d, cb-token-expirationdate: 2021-01-05 13:35:03 UTC, connectycube-rest-api-version: 0.1.1, x-runtime: 0.034053, x-frame-options: SAMEORIGIN, x-content-type-options: nosniff}
flutter: BODY
flutter:   {"user":{"id":3166675,"full_name":"iPhone 12 Pro","email":"ee2f23e8-0112-476c-9ede-28772d1bc5a6@talkie-walkie.nl","login":"EE2F23E8-0112-476C-9EDE-28772D1BC5A6","phone":"","website":null,"created_at":"2021-01-01T22:00:07Z","updated_at":"2021-01-04T09:13:25Z","last_request_at":"2021-01-05T11:35:05Z","external_user_id":null,"facebook_id":null,"twitter_id":null,"blob_id":null,"custom_data":"{device_type: x86_64}","avatar":"","user_tags":null}}
flutter:
flutter: CB-SDK: : createSession userId= 3166675

Actual result: Can't place calls.

Expected behavior: Should return a session, so i can use it to place conference calls.

Additional info The documentation shows that i should not even use the await keyword but the method is a future and you cant just get the value from the future. it looks like the documentation has some holes?

TatankaConCube commented 3 years ago

@oussamaelhajoui please look to our Conference Calls sample for getting an example of work with our SDK, here part with creation the session.

oussamaelhajoui commented 3 years ago

Okay but i have a question @TatankaConCube when rejoining a using the method joinDialog(roomid) i can hear the oppesite person but the mic of the device that rejoined the dialog does not work.

Could you maybe know why this is happening?

TatankaConCube commented 3 years ago

when rejoining a roomid i can hear the person but the mic does not work.

please create a new ticket with this issue and add more details for a better understanding of your issue

If the current issue no more actual, please close it.

TatankaConCube commented 3 years ago

duplicate of https://github.com/ConnectyCube/connectycube-flutter-samples/issues/59