Hello,
I just created my first ZFS API sample using java 8 with sources generated using swagger-codegen.
Following GET work with Postman :
{ {protocol}}{ {gateway-host}}{ {gateway-url}}reference/countries
With my java code i received this error :
INFOS: 1 * Client response received on thread main 1 < 403 1 < Connection: keep-alive 1 < Content-Length: 278 1 < Content-Type: application/json 1 < Date: Mon, 17 Jun 2019 11:49:06 GMT 1 < Via: 1.1 1437ff2cfbc1ea8c7a36e6b0ce6e935a.cloudfront.net (CloudFront) 1 < x-amz-apigw-id: bbCn0EYdDoEFWNg= 1 < X-Amz-Cf-Id: 1CH5M5jMA4gFDoN2ppJCYqKYTRQVel06t1fB5hSPQVB1Hiq-4dNxYg== 1 < x-amzn-ErrorType: IncompleteSignatureException 1 < x-amzn-RequestId: e8eddab7-90f5-11e9-a6a3-09a03b94e39f 1 < X-Cache: Error from cloudfront {"message":"'host' not a valid key=value pair (missing equal-sign) in Authorization header: 'Signature keyId=\"XXXXX\",algorithm=\"hmac-sha256\",headers=\"(request-target) host date\",signature=\"XXXX\"'."}
When i compare value of Authorization between Postman and Java it's the same.
Do i miss something else ?