[question] response format not showing same as gif?
beemstream opened this issue · comments
BeemStream commented
Hi, I have tried to use this library, particularly being able to persist variables to consequent requests, the response format Im getting is quite different and I cannot persist json responses into variables. they currently show as:
POST http://localhost:8000/register
HTTP/1.1 400 Bad Request
content-type: application/json
server: Rocket
content-length: 77
date: Sun, 30 Aug 2020 19:53:20 GMT
{
"fields": [],
"reason": {
"Other": "Username already exists."
},
"status": "not ok"
}
POST http://localhost:8000/login
HTTP/1.1 200 OK
content-type: application/json
set-cookie: refresh_token=05cFjPCUO7AnOx85Zh2rtSjJC0bn9CeblRi846f1qcfWCBzN8zRF7Xb+rgcqp1Kg4dH2o+YkerH6poP2nGIJGnWy720tvA4vb7ZnKMmdP4lPKkcAsLie8+NMNczrozgMu1hqFwAgETMnJrZ8p26Xl%2F1uAh%2FhrCzmhBx3U+HTs8xOgF6JoXebu1UvlDYoZlyPIWpk3G2k%2FEiQ0QCE9%2FVtVBHIvt1Am5StDMKNlga9ASNPsNGej+KGGqm0R5qiQoO5up%2FvbwmCyWV7WbUxHHOadrR476nn9P0+wxFMfEb1ElCp7crYCu+nVbtY3v5BbO91cjTlQgM9Yd2uuEMCkOdBD99R2lZIICnoPkQnWg%3D%3D; HttpOnly; SameSite=Strict; Path=/; Max-Age=259199; Expires=Wed, 02 Sep 2020 19:53:22 GMT
server: Rocket
content-length: 290
date: Sun, 30 Aug 2020 19:53:22 GMT
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJpYnJhaGltIiwiaXNzIjoiYmVlbXN0cmVhbSIsImV4cCI6MTU5ODgxNzMyMiwiaWF0IjoxNTk4ODE3MjAyLCJuYmYiOjE1OTg4MTcyMDR9.hDaQotCrV26teq68LYySP1mxzlWshufEVscVTqQ-fI31w_1UoCG9l2MNu6ZqFJFp8M5D0tXEKGMb77RODQCmsA",
"expires_in": 119,
"status": "ok"
}
And the file:
POST http://localhost:8000/register
Content-Type: application/json
{
"username": "foobar",
"email": "foo@gmail.com",
"password": "Foo123123",
"password_repeat": "Foo123123"
}
###
POST http://localhost:8000/login
Content-Type: application/json
{
"identifier": "foo",
"password": "Foo123123"
}
> {%
client.global.set('access_token', response.body.json.access_token);
%}
###
GET http://localhost:8000/authenticate
token: {{access_token}}
###
It only shows json body response. Is there anything im doing wrong?