Need help in remoteswinglibrary protocol error

After I set remoteswinglibarary
It is starting my swing application, then it fails.
It is throwing this error:
<ProtocolError for 127.0.0.1:xxxx/services: 500 Server Error>
How to fix this.

That error is from your application. How can we guess how to help?
Did you manage to prove the RemoteSwingLibrary is working with a sample application, instead of yours?

Hello,
At first you check the server logs for more details on the error. After verify the server is running and listening on the correct port. Test the API endpoint (127.0.0.1:xxxx/services) to see if it’s working. Ensure the remote config in your Swing app (host, port, credentials) is correct.
Debug the app to identify where the failure happens.

Best Regard,
Nathan
safeway hr direct

The service which it is referring to is the service from remoteswinglibrary.py connecting to remote server. In my case there is no remote server. I have used remote_port. This is when it is throwing error.

Logs from robot:
17:40:47.676 DEBUG Returned old JAVA_TOOL_OPTIONS=‘’
17:40:47.676 DEBUG Returned old _JAVA_OPTIONS=‘’
17:40:47.676 INFO connecting to started application at 127.0.0.1:60000
17:40:47.676 DEBUG remote swinglibrary instantiated
17:40:47.676 DEBUG remote services instantiated
17:40:47.676 INFO waiting for api at 127.0.0.1:60000
17:41:54.559 INFO Failed to start application: Traceback (most recent call last):
File “C:\dmslibrary\remoteswinglibrary-2.3.3.jar\RemoteSwingLibrary.py”, line 446, in start_application
self._application_started(alias, timeout, name_contains, remote_port, accept_old=False)
File “C:\dmslibrary\remoteswinglibrary-2.3.3.jar\RemoteSwingLibrary.py”, line 499, in _application_started
self._wait_for_api(url)
File “C:\dmslibrary\remoteswinglibrary-2.3.3.jar\RemoteSwingLibrary.py”, line 486, in _wait_for_api
raise RuntimeError(‘Connecting to api at %s has failed: %s’ % (url, error))
RuntimeError: Connecting to api at 127.0.0.1:60000 has failed: <ProtocolError for 127.0.0.1:60000/services: 500 Server Error>
17:41:54.559 INFO Waiting for process to complete.
17:41:54.574 INFO Process did not complete in 10 milliseconds.
17:41:54.574 INFO Leaving process intact.
17:41:54.574 INFO Process is running, but application startup failed
17:41:54.574 FAIL Connecting to api at 127.0.0.1:60000 has failed: <ProtocolError for 127.0.0.1:60000/services: 500 Server Error>
17:41:54.574 DEBUG Traceback (most recent call last):
File “C:\dmslibrary\remoteswinglibrary-2.3.3.jar\RemoteSwingLibrary.py”, line 656, in run_keyword
return getattr(self, name)(*args, **(kwargs or {}))
File “C:\dmslibrary\remoteswinglibrary-2.3.3.jar\RemoteSwingLibrary.py”, line 446, in start_application
self._application_started(alias, timeout, name_contains, remote_port, accept_old=False)
File “C:\dmslibrary\remoteswinglibrary-2.3.3.jar\RemoteSwingLibrary.py”, line 499, in _application_started
self._wait_for_api(url)
File “C:\dmslibrary\remoteswinglibrary-2.3.3.jar\RemoteSwingLibrary.py”, line 486, in _wait_for_api
raise RuntimeError(‘Connecting to api at %s has failed: %s’ % (url, error))

Same issue as someone posted before- RemoteSwingLibrary UNEXPECTED INTERNAL ERROR In Swing application when using "Start Application" keyword

I don’t find an example of RemoteSwingLibrary, I probably have one :frowning: .

Here is my latest experience with JavaBridge, which you need to install:

pip show java-access-bridge-wrapper
Name: java-access-bridge-wrapper
Version: 1.2.0
Summary: Python wrapper for the Windows Java Access Bridge
Home-page: https://github.com/robocorp/java-access-bridge-wrapper.git
Author: Robocorp
Author-email: support@robocorp.com
License: Apache-2.0
Location: C:\Python312\Lib\site-packages
Requires: pywin32
Required-by:

This link will expire (13/Feb/2025): Unique Download Link | WeTransfer
Unfortunately my test only starts the app.