thunderclient / thunder-client-support

Thunder Client is a lightweight Rest API Client Extension for VS Code.
https://www.thunderclient.com
Other
3.62k stars 127 forks source link

Getting CLI error - failed Unknown language: "text" #1581

Closed db-pw-rocker closed 1 month ago

db-pw-rocker commented 1 month ago

Describe the bug we are getting an error in CLI failed Unknown language: "text" with Version: 1.15.8. In Thunderclient in locally everything is working and the error is no visible in the logs....

To Reproduce ??? Our guess: Getting a response in plain text from an API.

Expected behavior

Platform:

Log Request URL: POST - https://{placeholder]/api/v1/routes Environment: TEST_ENV (Active) Response Error - Request Send {placeholder] failed Unknown language: "text"

db-pw-rocker commented 1 month ago

using paid version

rangav commented 1 month ago

Hi @db-pw-rocker thanks for reporting bug.

can you please test with previous version of CLI?

db-pw-rocker commented 1 month ago

does not work with previous version either. tested on Version: 1.13.2 (CLI)

rangav commented 1 month ago

Can you test the request with Extension UI and let me know

db-pw-rocker commented 1 month ago

hi, with Extension UI it does work and I cannot see the any error in the logs.. The test itself does not fail (not in UI and not in CLI). but CLI logs an error message (and pipeline fails)....

Actual log in CLI Request URL: POST - PLACEHOLDER Environment: TEST_ENV (Active) Response Error - Request Send (PLACEHOLDER) failed Unknown language: "text" Reports ...

Expected: Request URL: POST - PLACEHOLDER Environment: TEST_ENV (Active) Response "HelloWorld" <- text response from the request Reports ...

rangav commented 1 month ago

Thanks for the confirmation

does any url work with CLI or all urls are failing?

Is possible to share screenshots of the CLI error?

db-pw-rocker commented 1 month ago

there is not more error message.

as I mentioned above, it seems like, that CLI cannot work with an url endpoint with plain/text as a repsonse (content type).. the CLI tries to log always the response for any request. and in the case of sending a request and getting a plainText reponse, the CLI logs the error "Unknown language "text".

could you try to reproduce the issue please? :)

(is there an option in the ui to get more logs than the "output thunderclient" ? image

rangav commented 1 month ago

Thanks, I can reproduce the bug for text response in CLI, Will fix it asap.

db-pw-rocker commented 1 month ago

perfect, great news :) thanks

rangav commented 1 month ago

I have fixed the bug and published a new CLI version v1.16.3.

Please update and test it.

db-pw-rocker commented 1 month ago

fix worked, thanks!