Maybe a bug? I'm getting Server error 502, when using spaces in a String.

Hi Community.

I'm having this weird behavior, while I'm working with screen in Service.

I'm getting the following error. Somebody have a clue why?

502 - Web server received an invalid response while acting as a gateway or proxy server.

I'm peeled it down to this: It can't for some reason handle spaces in a string when I'm doing the following. When I'm leaving out the space, there is no problem.

Script with include name 'test'

#setLanguageLevel 3;


Void Test()
{
  printLine("Te st");

}

Screen config script:

#include "test";

Test();

RE: Maybe a bug? I'm getting Server error 502, when using spaces in a String.

Hi Kasper, no that cannot be. Spaces in strings happens all the time. Never had issues with it. 

Can you elaborate further on what you are doing? How is the script called? Is this Online or Onsite?

Av: Frode Lillerud 8. nov 2018

RE: Maybe a bug? I'm getting Server error 502, when using spaces in a String.

Hi Frode - it's my own Online demo environment.

I know that its not supposed behavior, and I find it indeed very mysterious. . But I've managed to re-create it consistently in in the smallest script possible (the one I posted). 

The screen has no elements, and this is the only code in the screen config script. I'm only getting this error when I try to view the screen - NOT when I run the script itself.

Av: Kasper Rosenlund 9. nov 2018