Skip to content

Conversation

@timmarkhuff
Copy link
Contributor

@timmarkhuff timmarkhuff commented Mar 14, 2024

In #168, Leo added faster HTTP timeouts, which was very helpful because the defaults are way too long.

In #164, I was overzealous in my code deletion and accidentally removed it. This PR restores it.

Also, I found a breaking change between 0.14.0 and the RPC server/URCap. When there is no active inspection on the URCap, it sends an empty string for the inspection_id. URScript does not have the notion of None or null, or even optional arguments, so this seems to be the best we can do. Previously, the API would accept an empty string for the inspection_id, but the new API endpoint returns the following response: HTTP response body: {"inspection_id":["This field may not be blank."]}

This has been tested on the URCap/RPC server and works as expected.

@timmarkhuff timmarkhuff marked this pull request as draft March 14, 2024 18:50
@timmarkhuff timmarkhuff marked this pull request as ready for review March 14, 2024 19:03
@timmarkhuff timmarkhuff requested a review from robotrapta March 14, 2024 19:03
Copy link
Member

@robotrapta robotrapta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While you're in here, could you change the DEFAULT_REQUEST_TIMEOUT to 10s? We saw some failures at 5s where it would have finished and succeeded given a bit longer.

@timmarkhuff
Copy link
Contributor Author

While you're in here, could you change the DEFAULT_REQUEST_TIMEOUT to 10s? We saw some failures at 5s where it would have finished and succeeded given a bit longer.

Done.

@timmarkhuff timmarkhuff merged commit d2ffdac into main Mar 18, 2024
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

Successfully merging this pull request may close these issues.

3 participants