http request - post

actionHero
Member
Posts: 37
Joined: Thu May 18, 2017 12:06 am

Re: http request - post

Post by actionHero »

This is all that gets returned.

Request failed with the status code 0
Server response:
Upload finished
Upload started
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: http request - post

Post by gabrielp »

That's invalid according to Enfocus' docs.

It says this about statusCode:
This property is read-only and becomes available after the HTTP request is finished.
Perhaps 0 is what it returns before the request is finished?

Are you waiting for it to be finished like this?

Code: Select all

while( !theHTTP.waitForFinished( 3 ) )
  {
      job.log( 5, "Doing request...", theHTTP.progress() );
  }
  job.log( 6, "Request finished" );
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
actionHero
Member
Posts: 37
Joined: Thu May 18, 2017 12:06 am

Re: http request - post

Post by actionHero »

Correct, that is waiting for it to finish. With Degub, I get this
Upload started
HTTP PUT request error: error during handshake[2]: 0x80090326
Upload finished
User avatar
gabrielp
Advanced member
Posts: 645
Joined: Fri Aug 08, 2014 4:31 pm
Location: Boston
Contact:

Re: http request - post

Post by gabrielp »

Try to enable debug logging. The debug logger should show some stuff.

You might want to reference this page: http://www.enfocus.com/manuals/Develope ... class.html
Free Switch scripts: open-automation @ GitHub
Free Switch apps: open-automation @ Enfocus appstore

Want to hire me? I'm looking for my next gig. Contact me on LinkedIn or via email.
Post Reply