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
This exception was observed when using [com.cognitect.aws/kafka "801.2.686.0"] to make an {:op :DescribeConfigurationRevision} request:
{:request
(...
{:op:DescribeConfigurationRevision,
:request
{:Arn"arn:aws:kafka:...",
:Revision1}}),
:response
{:cognitect.anomalies/category:cognitect.anomalies/fault,
:cognitect.aws.client/throwable #error {
:cause"class java.lang.Long cannot be cast to class java.lang.String (java.lang.Long and java.lang.String are in module java.base of loader 'bootstrap')"
When the input-shape supplied to cognitect.aws.protocols.rest/serialize-uri has a member that has a :shape of type "__long", and a "uri":location, the said exception is thrown:
user> (cognitect.aws.protocols.rest/serialize-uri"/v1/configurations/{arn}/revisions/{revision}" {:type"structure", :members {:Arn {:shape"__string", :location"uri", :locationName"arn"}, :Revision
{:shape"__long", :location"uri", :locationName"revision"}}, :required ["Revision""Arn"]} {:arn"arn:aws:kafka:test:123456:configuration/test/123456", :revision1})
Execution error (ClassCastException) at cognitect.aws.util/url-encode (util.clj:190).
class java.lang.Long cannot be cast to class java.lang.String (java.lang.Long and java.lang.String are in module java.base of loader 'bootstrap')
Solution
For each URI path value, covert the value to a string before encoding:
Description
This exception was observed when using
[com.cognitect.aws/kafka "801.2.686.0"]
to make an{:op :DescribeConfigurationRevision}
request:At the line in question:
ecad8a3010bc6c4dd3ac3005b15c8a6020fbee2a
When the
input-shape
supplied tocognitect.aws.protocols.rest/serialize-uri
has a member that has a:shape
of type"__long"
, and a"uri"
:location
, the said exception is thrown:Solution
For each URI path value, covert the value to a string before encoding:
The text was updated successfully, but these errors were encountered: