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

[Bug] Rest ET should return status code if http request failed #1738

Closed
chncaesar opened this issue Apr 2, 2022 · 0 comments
Closed

[Bug] Rest ET should return status code if http request failed #1738

chncaesar opened this issue Apr 2, 2022 · 0 comments

Comments

@chncaesar
Copy link
Contributor

chncaesar commented Apr 2, 2022

This code returns status 0; It should return 404, since http://mlsql/tech/api does not exist.

load Rest.`http://mlsql.tech/api` where
`config.connect-timeout`="10s"
and `config.method`="GET"
and `config.retry`="2"
and `header.content-type`="application/json"
AS result_1;
   
select string(content) AS content_1, status from result_1 AS result_2;

screen shot
image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants