mcdcorp / opentest

Open source test automation tool for web applications, mobile apps and APIs
https://getopentest.org
MIT License
446 stars 107 forks source link

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

Open APrincipe21 opened 11 months ago

APrincipe21 commented 11 months ago

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 commented 11 months ago

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.