Possible bug when printing environment name

Hello there,

A Customer complained that he could not open his app this morning.
After searching through the applogs we found the following line to be the problem:

image

with the following error:

It looks like printing the environment name should have been ‘prod’ threw the error.

This code has ran a couple thousand times and now all of a sudden there is one random error.
As far as I know the customer was on an Iphone.
Anyone else experienced somthing similar?

Mark

Are you using an uplink server?

If so, it could be because anvil-uplink was not thread safe ([FIXED] Returned environment name is inconsistent) and all you need to do is to upgrade your version of anvil-uplink.

Hi @stein ,

thanks for your response! But no this is a “normal” client side Code.
We don’t use uplink and are on a dedicated anvil server.

Mark

Hi @mark.breuss

We haven’t seen anything like this before, but it does seem like a bug at our end. Has it happened again, or was it just that one time?

[Moved to bug reports]

Hi @daviesian,

I’m only aware of this one instance.
Skimming through the applogs did also not reveal other instances.

Let me know what I can do to help you identify the issue!

Mark