vscode-restclient icon indicating copy to clipboard operation
vscode-restclient copied to clipboard

Cannot read properties of undefined (reading 'toString')

Open monisnap-julien opened this issue 1 year ago • 5 comments

Hello, I'm getting this error

Cannot read properties of undefined (reading 'toString')

when doing a simple cURL request like this one 👍

### Test
curl https://cat-fact.herokuapp.com/facts/random

Could you please help me understand what i'm doing wrong ?

monisnap-julien avatar Jul 13 '22 11:07 monisnap-julien

the same issue!

spone379 avatar Jul 14 '22 06:07 spone379

same issue

trbhoang avatar Jul 17 '22 07:07 trbhoang

I'm getting this error too since updating it to v0.25.0.

My current solution is to install another version and choose v0.24.6. It worked just fine.

afiiif avatar Jul 19 '22 01:07 afiiif

@Huachao, I think this commit d8528c2 should be released ASAP.

afiiif avatar Jul 19 '22 02:07 afiiif

short-term solution: request with body to avoid body parse error according this commit d8528c2

### Test
curl https://cat-fact.herokuapp.com/facts/random --data "anything"

whinc avatar Jul 19 '22 09:07 whinc

Same issue.

doanthaibao avatar Aug 18 '22 13:08 doanthaibao

I tested. I think the latest commit of this repo already solved this issue. It can be closed.

doggy8088 avatar Aug 19 '22 04:08 doggy8088

@Huachao When will you release new version to the VSCode Marketplace?

doggy8088 avatar Aug 19 '22 13:08 doggy8088

@monisnap-julien @doggy8088 @doanthaibao @whinc @afiiif @trbhoang @spone379 @liongkj @sminder @jgoodw1n @doggy8088 @JtMotoX @y4code @robotroll @amine-prime sorry for the late reply, you can checkout the latest version 0.25.1 to verify the fix

Huachao avatar Aug 19 '22 14:08 Huachao

I confirmed. It do works. Thank you! 👍

doggy8088 avatar Aug 19 '22 14:08 doggy8088