Jealstic environment variable as string?

Viewed 97

I'm new to jelastic and find this app really cool.

It takes times, but for now i've manged to add all my environments variables from the dashboard.

There is only one variable that is not accepted.

This variable look like this 121345648975423165498134654231, but this variable is not a number but needs to be a string.

As there is no char in this variable, the env is added as a number. The app then crash beacause the number is to big to be contained in a Number format.

So my question is how can i pass my env variable as a string in jelastic ? I've tried with "121345648975423165498134654231". Jelastic take my var as a string but with the " " at the begining and the end and this make my backend crash.

I need jelastic to see this var as a string, how can i add it ?

Thank you for your help.

12.02.2020 Edit:

enter image description here

This is where i try to ass my variable, i click on "Ajouter (Add)" button, then enter my variable and click apply on the bottom right of the screen.

And then i got this unknown error with a "send report" button.

enter image description here

Ps: this is not my real client id but the length is the same.

1 Answers

From my tests, it looks like a bug - Jelastic only accepts an integer env variable up to 20 digits. Attempts to set 21+ digits results in a dashboard error.

Alphanumeric strings are not affected (can be longer).

I suggest to report this problem to your hosting provider's support team so that it can be fixed, and if essential for you (and if possible) they might be able to provide you with a workaround in the meantime.

For example, the API method is not affected, so if you absolutely must set an environment variable with 21+ digits right now, you could use the AddContainerEnvVars API method to do that successfully (remember to URL encode the JSON key:value pairs).

EDIT: Jelastic confirmed this behaviour is caused by a platform bug (JE-54844) expected to be fixed in Jelastic 5.9-2

Related