Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot reach '/api/actor/announce' endpoint #627

Open
APrincipe21 opened this issue Jul 17, 2023 · 1 comment
Open

Cannot reach '/api/actor/announce' endpoint #627

APrincipe21 opened this issue Jul 17, 2023 · 1 comment

Comments

@APrincipe21
Copy link

APrincipe21 commented Jul 17, 2023

OpenTest version number: 1.3.8

I cannot reach the '/api/actor/announce' endpoint the actor calls with the open test server running. When attempting to reach it manually I get Cannot GET /api/actor/announce.

Steps to reproduce:

  1. run opentest server
  2. run opentest actor
  3. go to endpoint 'http://localhost:3000/api/actor/announce' manually

Relevant log information:

Test actor PID: 98987
13.29.11 Running in working directory "/Users/alex/maxrewards-mobile/opentest/actor1"
13.29.11 Loading configuration from "/Users/alex/maxrewards-mobile/opentest/actor1/actor.yaml"
13.29.11 DEBUG: Test actor JAR versions:
13.29.11 DEBUG:   opentest-appium-0.0.1.jar: 2022-02-25 10:58 -0600 0.0.1-50659ecda06a8b79a41f24c1fdff05187324402b-dirty
13.29.11 DEBUG:   opentest-base-0.0.1.jar: 2022-02-25 10:58 -0600 0.0.1-50659ecda06a8b79a41f24c1fdff05187324402b-dirty
13.29.11 DEBUG:   opentest-selenium-0.0.1.jar: 2022-02-25 10:58 -0600 0.0.1-50659ecda06a8b79a41f24c1fdff05187324402b-dirty
13.29.11 WARN: Failed to log extension JARs
13.29.11 TRACE: The main class is org.getopentest.Main
Warning: Nashorn engine is planned to be removed from a future JDK release
13.29.12 Connecting to sync service at http://localhost:3000...
13.29.12 Actor 15168 of type ACTOR1 with no tags is waiting to be acquired by a test session...
13.29.12 WARN: Failed to announce actor ACTOR1(15168) to the server. Original error was: Failed to announce actor ACTOR1(15168) to the server. The HTTP request was POST http://localhost:3000/api/actor/announce. The response status code was 404.

followed by several occurrences of the same warning...

@adrianth
Copy link
Contributor

adrianth commented Aug 1, 2023

That endpoint is a POST, not a GET. My guess is that you had some another web server (and not the OpenTest server) running on port 3000, which is why it was returning a 404 status code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants