I am just wondering if anyone else has had the following issue when using the Python API to publish to a enterprise portal:
[WinError 10054] An existing connection was forcibly closed by the remote host
Are there any server settings that might cause this error to occur? I never had it when using the Development portal. This has been occurring with the Production portal (I have reached out to our IT people as well).
This can happen if the client machine falls asleep or enters power save mode. Without knowing more about the environment (operating system for the Server machine, underlying DBMS and version, etc) I am unsure if this is the issue you are having, but make sure that your machine is configured to not go to sleep for longer than the time it will be idle:
Also, in Device Manager, under Network Adapters, right-click the listed network adapters, select Properties, and click the Power Management tab. Uncheck the box for "Allow the computer to turn off this device to save power."
Hope this helps!