Having a nil bodyjson when the result.body is full #520
Unanswered
lucaspichi06
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Folks,
I'm trying to implement the new beta version and I'm facing that the result.bodyjson is empty when the result.body is not.
This is the log from the test:
Mar 14 15:01:59.578�[37m [DEBU] [Vesper accesskey api integration tests] [create_new_customer_root_key] [http] �[0mresult of runTestStepExecutor: {TimeSeconds:0.0248327 StatusCode:201 Request:{Method:POST URL:http://vesper:8080/v1/access_keys Header:map[Authorization:[Bearer CY57CUztLDxgEuhNC4Im6U4MLldjGX4_Ote5NkbX] Content-Type:[application/json] X-Customer-Id:[NEW_CUSTOMER]] Body:{"scopes":{"customer":{"access_keys":["*"]}},"metadata": {"username":"test-user","keyname":"test-key-name"}} Form:map[] PostForm:map[]} Body:{"id":"5536b96a-a3ce-48c6-af28-a15aaec50f64","key":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI1NTM2Yjk2YS1hM2NlLTQ4YzYtYWYyOC1hMTVhYWVjNTBmNjQiLCJ2IjoxLCJtIjp7InVzZXJuYW1lIjoidGVzdC11c2VyIiwia2V5bmFtZSI6InRlc3Qta2V5LW5hbWUifSwiY2kiOiJORVdfQ1VTVE9NRVIiLCJzYyI6eyJhY2Nlc3Nfa2V5cyI6WyIqIl19fQ.u0X82VQwePaGq8jBZlMmPVnDzkC_J3DORYuK3z2s0wI","customer_id":"NEW_CUSTOMER","metadata":{"keyname":"test-key-name","username":"test-user"},"scopes":{"customer":{"access_keys":["*"]}},"expires_at":null,"created_at":"2022-03-14T15:01:59.5713575Z","revoked_at":null} BodyJSON:<nil> Headers:map[Content-Length:556 Content-Type:text/plain; charset=utf-8 Date:Mon, 14 Mar 2022 15:01:59 GMT] Err:}
As you can see, the BodyJSON is but the Body is not empty.
Is there something missing in my configuration? This is my test:
And this is the result:
Beta Was this translation helpful? Give feedback.
All reactions