Hoppa till huvudinnehållet

Send Web Request sends then dies. Help?

Kommentarer

11 kommentarer

  • Permanently deleted user

    Have you looked at the dev console for clues? This sounds like a timeout to me; if so I think that you'll see as much in the console when running your workflow from the sandbox. Is there anything there?

    0
  • Permanently deleted user

    Yes, I've checked the dev tools. I've even upped the timeout to 5 minutes. I don't think it's a timeout issue.

    0
  • Permanently deleted user

    The dev tools return a status of 200 when the token is sent, then a 202 when the json is sent. See the Dev tools screenshot below.

     

    0
  • Permanently deleted user

    I'm not sure if it posted the image properly so here it is againimage.png

    0
  • Permanently deleted user

    Have you checked the console in the sandbox? It will tell you input and output values for most activities and provide the stack and message for failures.

    0
  • Permanently deleted user

    This is the error in the console. I can't find any documentation on what the error means but the response looks successful. We also verified CORS header and the origin is allowed.

     

    console

    We looked at this post already to help with resolution but it doesn't apply. https://communities.geocortex.com/s/question/0D5f200004rGxnhCAC/what-is-wf0014-cannot-perform-web-request-error

    0
  • Permanently deleted user

    @JD Burroughs? I believe that taking the "Authorization" header out should fix your problem.

     

    I had a similar issue and found the answer in a thread on Safe Software's website. In some cases, the "Send Web Request " tool hides some of the response information from us.

     

    Hope that helps (I have my FME web requests working so I know it can be done --> Hope)

    0
  • Permanently deleted user

    @Matthew Ryan? I took out the Authorization header and put the token in the URL and unfortunately the result was the same. Do you happen to have a link the article on the Safe site I could review? I found this one but I'm not sure if it's the one to which you're referring https://knowledge.safe.com/questions/65037/rest-api-header-token-authorization-fails-on-fme-s.html

     

    Also, which method are you using for your job, i.e. data download or job submitter?

    0
  • Permanently deleted user

    I'm using job submitter and data upload. That is the page I found. I couldn't tell if you were using the "fmerest" API or the other services so I wasn't completely sure if the answer from Laura was relevant. Though, I tend to put the token in the URL for the services Laura mentioned don't support the Authorization header.

     

    Of course, this means a little extra caution with permissions on whoever owns the token or putting a web service in between that might generate a temporary one each time and handle the request. Don't want people to have access to your super user.

     

    That^ said, this looks like you're having the same problem as me then. My best guess is that any response that isn't a 200 success causes the workflow to die. I posted about my woes here --> https://communities.geocortex.com/s/question/0D5f200005f0F8VCAU/web-request-succeeds-and-returns-an-error-alert

    0
  • Permanently deleted user

    You're getting a 202 JD, so Matt's got it. @Ryan Cooney?  says that the fix is in the next release, but for now you can stick your request in a TryCatch activity so your users get their alerts.

    0
  • Dean Howell

    Hello, does anyone have some screen shots on the correct syntax / field values for the POST functions. Not sure how to structure it it within the tools. I can get the syntax in 'PostMan' and it works but just can get it to work in Workflow manager. 

    0

Du måste logga in om du vill lämna en kommentar.