MyBB Internal: One or more warnings occured. Please contact your administrator for assistance.
RESTful APIs and Relays
Current time: 09-19-2020, 10:14 AM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RESTful APIs and Relays
02-07-2012, 03:17 AM (This post was last modified: 02-07-2012 03:37 AM by Aaron Kulick.)
Post: #1
Bug RESTful APIs and Relays
We leverage the RESTful APIs heavily for internal URL testing and relay requests heavily. I have noticed a potential bug, though, it may not necessarily be a bug both with the normal GUI results and the RESTful API results of any relay test.

I have not had time to fully investigate and will be doing so this morning and there is a simple work around for the issue, but maybe someone has a fix/suggestion already.

To reproduce the issue:

  1. Have a WPT instance configured with 1 or more relay entries.
  2. Submit a test using a relay entry via the API (or GUI).
  3. Wait sufficient time until the result completes (in my case 1 minute is plenty).

The API reports as follows:

curl ""

<statusText>Test Pending</statusText>

The API will continue to report a statusCode 100 until GUI test result URL is hit ( No matter how many times I hit it will staty at "Pending" even after hours or days have passed. However, as soon as the GUI result is hit, the API result will change to completed and the results displayed as XML normally.

The simple workaround is to hit the GUI result URL before hitting the API result. However, the situation is not ideal.

I have not really looked into how relay results are presented, but appears the simple act of viewing them stages the result and changes it from pending to completed. However, as I said, I am not sure why this is.

Anybody else seeing this behavior?

Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
RESTful APIs and Relays - Aaron Kulick - 02-07-2012 03:17 AM
RE: RESTful APIs and Relays - pmeenan - 02-07-2012, 03:59 AM
RE: RESTful APIs and Relays - Aaron Kulick - 02-07-2012, 04:39 AM
RE: RESTful APIs and Relays - pmeenan - 02-07-2012, 05:00 AM
RE: RESTful APIs and Relays - pmeenan - 02-09-2012, 06:50 AM
RE: RESTful APIs and Relays - mikemontrel - 02-15-2012, 12:44 PM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)