question

Patrick Cloutier avatar image
0 Likes"
Patrick Cloutier asked Patrick Cloutier commented

How to make webserver work

When I press SelectModel, my models do not appear. There is nothing to select.

I did the following:

  1. Install webserver
  2. Put the correct FlexSim program directory in flexsim webserver configuration.txt
  3. Put the correct path for my models in flexsim webserver configuration.txt
  4. Run Flexsimwebserver
  5. Go to 127.0.0.1 on latest Edge version.

What I am doing wrong?

1623866858849.png

FlexSim 21.1.4
flexsim 21.1.4webserver
1623866858849.png (35.3 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hey @Patrick Cloutier ,

The webserver is definitely running, or you wouldn't see that interface at 127.0.0.1

Please attach your config file and we'll see if anything sticks out to us.

Did you try putting fully static paths into the config file, rather than anything with the %percents% around it?


0 Likes 0 ·
Patrick Cloutier avatar image Patrick Cloutier Ben Wilson ♦♦ commented ·

Here is the file. I had to write the full path for the model directory because Documents is in Onedrive and if I write %Documents% it says it can't find the directory. The path I wrote is the one I got when I right click the folder and go to Properties/General/Location.

flexsim webserver configuration.txt

0 Likes 0 ·

1 Answer

·
Jacob Gillespie avatar image
1 Like"
Jacob Gillespie answered Patrick Cloutier commented

When you pull up the page, the console should look like this if there were no errors:

1624038067907.png
To see the raw xml that it is returning you could try using this url:

http://127.0.0.1/webserver.dll?availablemodels

The model directory being in OneDrive might also cause problems. I've never tested that before.


1624038067907.png (12.7 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Patrick Cloutier avatar image Patrick Cloutier commented ·
The console looked exactly like you showed. But when I click on the link to see the raw xml I was getting an error that I didn't understand and it listed every single file and folders and sub folders in my folder.

This gave me an idea. So I created a new folder in which I placed on a few models and no subfolders. And it now works.

But I still have to write the full path because if I try with % it says it can't locate the folder. Maybe because of OneDrive.

Thanks,

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.