-
Notifications
You must be signed in to change notification settings - Fork 466
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
KCL 2.0 DynamoDBLeaseRefresher cannot marshall request to JSON for local testing #554
Comments
With KCL v2, it's not just enough if you override the HttpClient of KinesisAsyncClient. You will have to do the same for DynamoDB as well as Cloudwatch. For eg., this works for me (Code is from a Spring project)
|
I have tried as such with the DynamoDbAsyncClient, with both SSL on and SSL off for dynalite, with no change in the error.
I did get CloudWatch errors until I added
so I am led to believe the current CloudWatch client is fine.
|
Do you happen to have differing jackson versions? |
I just attempted it with 2.9.9 on all of them, but that did not resolve, nor change the outputs/internal error, of the commands I'm running. |
Facing the same issue. Did any one find the solution for this? |
I have been trying to write integration tests for an application that uses KCL 2.0, using kinesalite v2.0.0 and dynalite v2.3.1 to mock kinesis and dynamodb. The issue I am having is that KCL 2.0 cannot create/describe the checkpoint table, with the specific (internal) exception
software.amazon.awssdk.core.exception.SdkClientException: Unable to marshall request to JSON: host must not be null.
The stack trace is always
My console ends up looking like the following, which doesn't give much insight either.
Everything functions properly from the aws cli, i.e. create/read streams using kinesalite and create/read tables using dynalite, so I do not think that the issue is there. I am also able to directly use the KinesisAsyncClient and DynamoDbAsyncClient to create/write/read local streams/tables, so I know the SSL cert check disable is working right, as well as the HTTP 1.1 override, and the endpoints are getting passed around correctly.
If you need more code/configuration/etc to reproduce the issues I've been seeing, just let me know what you need.
Version:
amazon-kinesis-client: 2.2.0
kinesalite: 2.0.0
dynalite: 2.3.1
Environment variables:
Async Clients initialization code:
Scheduler initialization code:
Kinesalite/Dynalite
ps
entries (ports are random)The text was updated successfully, but these errors were encountered: