question

Mischa Spelt avatar image
0 Likes"
Mischa Spelt asked Jeanette F commented

HTTP server with Windows Authentication

Hi,

I was trying to setup a simple webserver with Windows Authentication but I'm getting the following exception when I enter the username and password after the browser requests them:

Error: Can't set headers after they are sent.
    at SendStream.headersAlreadySent (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:361:13)
    at SendStream.send (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:572:10)
    at C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:722:12
    at FSReqWrap.oncomplete (fs.js:153:5)
Error: Can't set headers after they are sent.
    at SendStream.headersAlreadySent (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:361:13)
    at SendStream.send (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:572:10)
    at C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:722:12
    at FSReqWrap.oncomplete (fs.js:153:5)
Error: Can't set headers after they are sent.
    at SendStream.headersAlreadySent (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:361:13)
    at SendStream.send (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:572:10)
    at C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:722:12
    at FSReqWrap.oncomplete (fs.js:153:5)


This is my config:

# This file needs to be in the same directory as flexsimserver.bat

General:
    Flexsim Program Directory:      %PROGRAMFILES%\FlexSim 2023\program
    Model Directory:                %DOCUMENTS%\FlexSim 2023 Projects
    Port:                           80
    Reply Timeout (milliseconds):   10000
    Max Instances (of Flexsim):     8
    Max Threads Per Instance:       max
    Ignore Auto Save Files:         yes
Remote Operations (security hazards):
    Model Uploading:                no
    Model Downloading:              no
    Model Deleting:                 no
    Max Upload Size (bytes):        10000000
Jobs:
    Flexsim Data Directory:         %AllUsersProfile%\FlexSim\FlexSim23.0
    Max Job Queue Length:           100
    Max Job Timeout (seconds):      3600
Windows Authentication:
    Use Windows Authentication:     yes
    Restrict UserGroup Directories: no
    Active Directory:
        url:                        ldap://dc.domainName.com
        baseDN:                     dc=domainName,dc=com
        username:                   [email protected]
        password:                   password
Session:
    Enable:                         yes
    Secret:                         dqtqv4P%:P\C#Jx%fo
    Max Age (seconds):              3600

Running the latest webserver version from the download page on Windows 10 Pro.

FlexSim 23.0.3
webserver
· 4
5 |100000

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

Jacob Gillespie avatar image Jacob Gillespie ♦ commented ·

I can't seem to replicate your issue.

Do you happen to have job files in %AllUsersProfile%\FlexSim\FlexSim23.0?

0 Likes 0 ·
Mischa Spelt avatar image Mischa Spelt Jacob Gillespie ♦ commented ·
The folder does exist but there are no jobs in it.

Would it be helpful (for this question and my other question) if I gave you access to the test environment? I can send you the credentials by email if you'd like?

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·
Hello @Mischa Spelt,

Did the help you received in the following post help with this issue too or are you still having issues with this?

0 Likes 0 ·
Jeanette F avatar image Jeanette F ♦♦ commented ·

Hi @Mischa Spelt,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question.

0 Likes 0 ·

0 Answers

·

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.