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

Latest Twilio Java SDK breaks Job endpoint #748

Open
ukby1234 opened this issue Jun 9, 2023 · 5 comments
Open

Latest Twilio Java SDK breaks Job endpoint #748

ukby1234 opened this issue Jun 9, 2023 · 5 comments
Labels
status: work in progress Twilio or the community is in the process of implementing type: bug bug in the library

Comments

@ukby1234
Copy link

ukby1234 commented Jun 9, 2023

Issue Summary

Job.fetcher(jobSid).fetch failed with the exceptions posted.

Steps to Reproduce

  1. This is the first step
  2. This is the second step
  3. Further steps, etc.

Code Snippet

Job.fetcher(jobSid).fetch

Exception/Log

Exception in thread "main" com.twilio.exception.ApiException: Cannot deserialize value of type `java.util.LinkedHashMap<java.lang.String,java.lang.Object>` from Array value (token `JsonToken.START_ARRAY`)
 at [Source: (ByteArrayInputStream); line: 1, column: 348] (through reference chain: com.twilio.rest.bulkexports.v1.export.Job["details"])
	at com.twilio.rest.bulkexports.v1.export.Job.fromJson(Job.java:84)
	at com.twilio.rest.bulkexports.v1.export.JobFetcher.fetch(JobFetcher.java:61)
	at com.twilio.rest.bulkexports.v1.export.JobFetcher.fetch(JobFetcher.java:30)
	at com.twilio.base.Fetcher.fetch(Fetcher.java:40)

Technical details:

  • twilio-java version: 9.6.2
  • java version: 11
@kridai kridai added the type: bug bug in the library label Jun 12, 2023
@kridai
Copy link
Contributor

kridai commented Jun 12, 2023

HI @ukby1234 , Thanks for reaching out and pointing out the issue, we have been able to reproduce it. Will inform once the fix is available.

@ukby1234
Copy link
Author

@kridai any updates on this bug?

@sbansla
Copy link
Contributor

sbansla commented Oct 11, 2023

@ukby1234 I am actively working on the fix of above issue. Will be updating soon.

@sbansla
Copy link
Contributor

sbansla commented Oct 11, 2023

@ukby1234 I tried calling the API using Postman, and it turns out that the 'details' should be an array of hashmaps instead of a single hashmap. This appears to be a bug in how the API specifications are declared, which is why the SDK is currently using it as a hashmap. I will work to rectify this issue internally and will inform you once it is resolved.

@sbansla sbansla added the status: work in progress Twilio or the community is in the process of implementing label Oct 11, 2023
@sbansla
Copy link
Contributor

sbansla commented Jan 17, 2024

I have again reminded the concerned team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: work in progress Twilio or the community is in the process of implementing type: bug bug in the library
Projects
None yet
Development

No branches or pull requests

3 participants