Internal Server Error When running Testing Rig

What I’m trying to do:
Figure out what Internal server error: 4054aff6e078 means when running my testing rig. It’s a way that I can run unit tests before launching my startup form, but I’m getting this strange error when trying to run the test:

anvil.server.call(('assert_is_positive_int', 1.1))

I get the error: Error: Internal server error: 4054aff6e078 which is not helpful at all.

However, I do not get that error if I only run this test:

anvil.server.call('assert_is_positive_int', -1)

What I’ve tried and what’s not working:
Searching the Forums for Internal Server Error. I saw a feature request that asked for more information when getting an Internal Server Error, but no follow up on it.

Any help is appreciated.

Clone link:
https://anvil.works/build#clone:KN7EZDK5X34Q47WV=NCM5HYAKCROKB5GD6UXZO42I

this may sounds crazy but (without looking at your code) is it something to do with the fact that your function appears to assert if it is a positive integer yet in fact you’re sending a float?

anvil.server.call(('assert_is_positive_int', 1.1))

Just realized that there are double parens, but it still doesn’t help that the server message was not helpful at all.

1 Like

Something like this would be more helpful:

TypeError: function_name must be str, not tuple

2 Likes