You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SID parameter for fetching a user in com.twilio.rest.chat.v2.service.UserFetcher.fetch may be the user's SID or identity. If it's an identity it may contain characters illegal for the URL.
Steps to Reproduce
Create a chat user with identity "a|b".
User.fetcher(serviceSid, "a|b").fetch()
Code Snippet
User.fetcher(serviceSid, "a|b").fetch()
This will throw an
Exception/Log
Caused by: com.twilio.exception.ApiException: Bad URI: https://chat.twilio.com/v2/Services/IS0f052bab32f947aeb5ccb42bb0f73b28/Users/a|b
at com.twilio.http.Request.constructURL(Request.java:143)
at com.twilio.http.NetworkHttpClient.makeRequest(NetworkHttpClient.java:106)
at com.twilio.http.HttpClient.reliableRequest(HttpClient.java:42)
at com.twilio.http.HttpClient.reliableRequest(HttpClient.java:25)
at com.twilio.http.TwilioRestClient.request(TwilioRestClient.java:50)
at com.twilio.rest.chat.v2.service.UserFetcher.fetch(UserFetcher.java:51)
at com.twilio.rest.chat.v2.service.UserFetcher.fetch(UserFetcher.java:20)
at com.twilio.base.Fetcher.fetch(Fetcher.java:45)
at io.yolabs.services.twilioservice.TwilioApi.getUser(TwilioApi.kt:135)
... 1 more
Caused by: java.net.URISyntaxException: Illegal character in path at index 82: https://chat.twilio.com/v2/Services/IS0f052bab32f947aeb5ccb42bb0f73b28/Users/a|b
at java.base/java.net.URI$Parser.fail(URI.java:2913)
at java.base/java.net.URI$Parser.checkChars(URI.java:3084)
at java.base/java.net.URI$Parser.parseHierarchical(URI.java:3166)
at java.base/java.net.URI$Parser.parse(URI.java:3114)
at java.base/java.net.URI.<init>(URI.java:600)
at com.twilio.http.Request.constructURL(Request.java:140)
... 9 more
Technical details:
twilio-java version: 7.52.0
java version: 8
The text was updated successfully, but these errors were encountered:
Issue Summary
The SID parameter for fetching a user in com.twilio.rest.chat.v2.service.UserFetcher.fetch may be the user's SID or identity. If it's an identity it may contain characters illegal for the URL.
Steps to Reproduce
Code Snippet
This will throw an
Exception/Log
Technical details:
The text was updated successfully, but these errors were encountered: