Skip to content
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

The gzip-compressed JSON data transmitted by the backend is not available to the variables. #1258

Open
qcyblm opened this issue Mar 28, 2024 · 0 comments

Comments

@qcyblm
Copy link

qcyblm commented Mar 28, 2024

  • REST Client Version: v0.25.1
  • VSCode Version:v1.87.2
  • OS Version:Windows 11 pro 22631.3374

Steps to Reproduce:

  1. Create POST request
###
# @name loginToken
POST http://{{host}}:{{port}}/api/public/sign_in
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate, br

name={{name}}
&password={{password}}

###
@token = {{loginToken.response.body.data.token}}
GET http://{{host}}:{{port}}/api/private/login_log
Authorization: Bearer {{token}}
Accept-Encoding: gzip, deflate, br
  1. Send Request loginToken
HTTP/1.1 200 OK
content-encoding: gzip
date: Thu, 28 Mar 2024 04:01:03 GMT
connection: close
content-length: 244

{"statusCode":200,"message":"success","data":{"token":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwibmFtZSI6InFjeWJsbSIsImlhdCI6MTcxMTU5ODQ2MywiZXhwIjoxNzEyMjAzMjYzfQ.vtwrMd7ZQpN9fId98ESpiNt2OVKU065_w1TvSlV8a5Y"}}
  1. Alerts for errors
    @token = {{loginToken.response.body.data.token}}
    Only JSON and XML response/request body is supported to query the result
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant