Questions tagged [thunderclient]

Rest API Client for VS Code

Thunder Client for VS Code is an extension for that facilitates to send http request to a webservice and handle the response. It is similar to .

43 questions
4
votes
10 answers

Why do I get "Connection was refused by the server" when using Thunder Client on VS Code?

I'm using Thunder Client on Visual Studio Code, and tried making a request to "localhost:3000". It gave me an error Connection was refused by the server Any fix to this?
Evee
  • 41
  • 1
  • 2
3
votes
1 answer

How to save a Visual Studio Code ThunderClient request as a file?

What I am trying to accomplish is to save a visual studio thunder client request as a file. I have gone to the settings and placed a check in the checkmark Thunder-client: Save Request On Send. Then when on the Thunder Client extension screen I am…
Catto
  • 6,259
  • 2
  • 52
  • 55
2
votes
1 answer

TypeError: Cannot read properties of undefined (reading 'name') with thunderclient

I am using thunder client extension on vs code and I am requesting data from it. I tried changing names and my code a lot of times but it isnt working. Also i tried making name const but it is saying that name is undefined (void) so I think the…
2
votes
0 answers

MongoDB connection getting terminated for a Post function

I have written a backend in Go for basic CRUD application. While working with Post function which can store images and other information in my DB the connection is getting terminated. This is what Thunderclient shows Connection was forcibly closed…
2
votes
1 answer

Thunder Client: simplest way to add script to request

I try to figure out how to add custom code to my request similar way to pre-request script in Postman like: const items = JSON.parse(pm.collectionVariables.get('items')) const randomItem = _.sample(items) pm.variables.set('randomItemId',…
pbaranski
  • 22,778
  • 19
  • 100
  • 117
2
votes
0 answers

How to save responses in Visual Studio Code ThunderClient?

I want to keep responses to examine later, when I dont have VPN connection or my local environment is not running. I saw that the response mesages are gone after restarting VS code. Does this tool have this functionality? If I have to save the info…
yılmaz
  • 365
  • 1
  • 14
2
votes
2 answers

Thunderclient how to pass a response value to the next request

I want to use thunderclient to test an http api. The steps below are all working +--------+ +------------------+ | |--1 -- Login with user + pass -->| Server | | | …
surfmuggle
  • 5,527
  • 7
  • 48
  • 77
1
vote
0 answers

How to make API call like thunderclient using code? including headers?

I am making a API call using thunderClient in VScode, I have added auth in the header. How can I cam the same call by writing a code? I tried Axios but was unable to make a call.
1
vote
2 answers

In Thunderclient, my API is showing "Processing, Please Wait..." and stuck over here

I am using JavaScript and node js for configuring backend and I want to perform CRUD operations. What should be the right way to solve this problem?
1
vote
2 answers

Thunder client subscription git sync capability

Can someone explain the difference in the git sync capability of thunder client "subscription"? On their github page it states that the git sync capabilities are "subscription" only. I've played around with the instructions for saving your…
sdparker
  • 101
  • 2
  • 6
1
vote
0 answers

Export Thunder Client API Request and Response as csv (Visual Studio Code)

I have imported json files in VS Code containing collections and environments to run APIs. I am using the marketplace extension "Thunder Client" to run my collections. After running my collections/apis, how can I save the request body and response…
1
vote
0 answers

How do you set in Thunder Client the access-token retrieved from collection authentication as an environment variable?

I have a collection in Thunder Client. In the collection settings I setup the authentication, with Oauth 2 client credentials grant, which generates a token. The documentation describes that token is saved and will be included in the…
1
vote
1 answer

route saying forbidden although i issued user jwt

Using thunderclient (similar to postman) i cant access this employee api which requires a jwt, even though i confirm i am already authorized. Here is my code: authController: const usersDB = { users: require("../model/users.json"), setUsers:…
1
vote
0 answers

API request not updating variable in the first request. Second request is able to output the correct information

I am building an application to collate all the indicators that I use while investing in the stock market, as a personal project. I am currently making use of the yahoo-finance API. Given below is my code for one of the data loading functions, that…
Fauzaan
  • 13
  • 3
1
vote
2 answers

Set the Bearer token for all requests in Thunder Client

Is there a way to set the Bearer token for all requests in Thunder Client in VS Code? Currently I have to set it for every request.
bonum_cete
  • 4,730
  • 6
  • 32
  • 56
1
2 3