Forum Discussion

Jagruuti's avatar
Jagruuti
Contributor
4 years ago
Solved

Why my API requests have suddenly stopped working?

Suddenly, my API requests are not producing any response. They are just getting executed for an infinite amount of time. But the same requests are working in Postman.

Please find the attached screenshot for reference.

 

 

  • Hi richie ,

     

    It is working now.

    1) It was actually the proxy setting issue which was done by the support team and hence my normal requests were not working.

    2) And the incorrect event handler script added to the test case which automatically gets added to all the test cases.

     

    I found this when I enabled the proxy setting in Postman and my requests stopped working. And then I realised that the issue in ReadyAPI/SOAPUI which has to do something with the proxy. So I checked the proxy setting which was actually ON as shown below.

    And now I have made it OFF and it is absolutely working fine.

    Thanks for your help too!

     

    Regards,

    Jagruuti

     

     

9 Replies

  • richie's avatar
    richie
    Community Hero
    Hey Jagruuti,

    I've had this several times myself.

    What i do when i get this scenario, is that i grab the RAW request from ReadyAPI! and grab the RAW request from Postman and compare the two against each other....payload, http headers, full url string (servername and URI) etc.....that'll enable you to identify what the issue is.

    I like the Fiddler app for this sort of diagnostic analysis (it proxies the requests/responses), but it's not essential, but its a great tool that'll help with other issues where you need to compare between Postman and ReadyAPI!/SoapUI.

    Oh, btw. Regarding the image you attached. You scribbled out a lot of stuff you dont actually need to. You dont need to scribble out stuff like teststep names to ensure youre covering off the security aspects. For future reference you need to blank out the 'servername' (NOT the URI....just the host/servername) and any authorisation/authentication details like usernames and passwords/token details, etc. If you consider the details a black hat would need to cause problems (i.e. the servername and auth details) that should guide you in determining what needs to be blanked/scribbled out. Without these details (host/servername and auth details) someone with nefarious intentions would have no place to start.

    Ok, thats all i got for now!

    Nice one,

    Rich
    • Jagruuti's avatar
      Jagruuti
      Contributor

      Hi richie ,

       

      Thanks for the info!

      I have installed and trying to explore Fiddler 4. Can you help me to know how will I compare the ReadyAPI/SOAPUI and Postman requests in Fiddler 4?

       

      Thanks and Regards,

        Jagruuti Wani

      • richie's avatar
        richie
        Community Hero
        Hey Jagruuti,

        To use Fiddler to compare Postman vs ReadyAPI! traffic you need to setup both to use proxies (and Fiddler is the proxy).

        1. Setup the Postman proxy first (if done correctly you update the Internet Options control panel applet) picking an appropriate port number. Once youve set this up, its enabled by default (you dont have to turn it on unlike ReadyAPI!).

        2. Next launch ReadyAPI! proxy settings in the Preferences and pick the same port number that you specified as the proxy port for Postman. Enable the proxy in ReadyAPI!

        3. In Fiddler ensure youve installed the certificate etc. that is needed and then via the Options, ensure Capture and Decrypt HTTP traffic tickboxes are checked.

        4. Ensure Fiddler is set to listen on the same port number as the Postman and ReadyAPI! proxy settings.

        4. Ensure Fiddler isnt maximised so that other apps when open can still be seen behind Fiddler (make the Fiddler window half the size of full screen).

        5. Close all apps except Fiddler (half size, not maximised), Postman (maximised), and ReadyAPI! (minimised).

        6. Restart Fiddler (half size, not maximised) to ensure any changes previously are persisted

        7. Via the 'Any Process' button, click on it and drag it to Postman to identify Postman as the app from which traffic needs to be recorded.

        8. Make submission via Postman, this should write >=1 row in the Session List frame in Fiddler.

        9. Minimise Postman, maximise ReadyAPI!, then click back on Fiddler so that the window is sitting in front of a maximised ReadyAPI! window.

        10. Click on the Fiddler button that was originally 'Any Process', but currently says something like 'postman:18404' and drag to ReadyAPI! to identify ReadyAPI! as the app from which traffic needs to be recorded.

        11. Make submission via ReadyAPI!, this should write >=1 row in the Session List frame in Fiddler.

        12. Click on the Postman submission in Fiddlers Session List and then via the Inspectors tab, grab the Raw content for the request (headers and payload) and copy into a notepad file.

        13. Click on the ReadyAPI! submission in Fiddlers Session List and then via the Inspectors tab, grab the Raw content for the request (headers and payload) and copy into a notepad file.

        So now you can compare and contrast the request details that work in Postman against the failing request in ReadyAPI!

        did you say the request was just hanging in ReadyAPI!? That leads me to believe theres something pretty essential wrong as youre not even getting an http response making me think your endpoint isnt even getting the request.

        Anyway. Please confirm back progress as this will help others with similar issues.

        Nice one,

        Oh...sorry for the lengthy post!

        Rich