Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidTypeIdException on getVoiceClient().listCalls() #443

Closed
jepsar opened this issue Apr 4, 2023 · 5 comments
Closed

InvalidTypeIdException on getVoiceClient().listCalls() #443

jepsar opened this issue Apr 4, 2023 · 5 comments

Comments

@jepsar
Copy link

jepsar commented Apr 4, 2023

Describe the bug
Exception when trying to get listCalls()

To Reproduce
Try to execute getVoiceClient().listCalls()

Expected behavior
No exception

Vonage SDK Version
7.2.0

Java SDK Version
openjdk version "17.0.1" 2021-10-19
OpenJDK Runtime Environment Temurin-17.0.1+12 (build 17.0.1+12)
OpenJDK 64-Bit Server VM Temurin-17.0.1+12 (build 17.0.1+12, mixed mode)

Additional context/ Error Log

Caused by: com.fasterxml.jackson.databind.exc.InvalidTypeIdException: 
Could not resolve type id 'app' as a subtype of `com.vonage.client.voice.Endpoint`: known type ids = [phone, sip, websocket] (for POJO property 'from')
 at [Source: (String)"{"page_size":10,"record_index":0,"count":63,"_embedded":{"calls":[{"uuid":"xxx","status":"cancelled","direction":"inbound","rate":"0.00450000","price":"0.00000000","duration":"0","network":"US-VIRTUAL-BANDWIDTH","conversation_uuid":"xxx","start_time":"","end_time":"","to":{"type":"phone","number":"xxx"},"from":{"type":"phone","number":"xxx"},"_links":{"self":{"href":"/v1/calls/xxx"}}},{"[truncated 4081 chars]; line: 1, column: 4273] (through reference chain: com.vonage.client.voice.CallInfoPage["_embedded"]->com.vonage.client.voice.EmbeddedCalls["calls"]->java.lang.Object[][9]->com.vonage.client.voice.CallInfo["from"])
@jepsar
Copy link
Author

jepsar commented Apr 4, 2023

Same happens when I try to get voiceClient.getCallDetails(callId).

@jepsar
Copy link
Author

jepsar commented Apr 4, 2023

We are using "In-App Voice". Maybe that's related?

jepsar pushed a commit to jepsar/vonage-java-sdk that referenced this issue Apr 4, 2023
@jepsar jepsar mentioned this issue Apr 4, 2023
3 tasks
@SMadani
Copy link
Contributor

SMadani commented Apr 6, 2023

Thank you for reporting this and submitting a PR! I will add this fix to the v7.3.0 release close this issue once it's done.
Out of curiosity, how did you encounter this? I presume the call was made from another SDK or the REST API? I'm just trying to create a minimal reproducible example which would help with testing this in practice.

@jepsar
Copy link
Author

jepsar commented Apr 6, 2023

Yeah, we are doing a WebRTC call in the front end using the JavaScript client, as shown here https://developer.vonage.com/en/tutorials/app-to-app/place-call/javascript

@SMadani
Copy link
Contributor

SMadani commented Apr 11, 2023

Should be fixed in #446.

@SMadani SMadani closed this as completed Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants