web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Having trouble using 2...
Power Automate
Unanswered

Having trouble using 2captcha with Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by 3

Hi everyone, I'm kinda new to Power Automate, and I'm in the middle of building a flow with a captcha.

 

I've already failed with the OCR, and that's why I've started trying with 2captcha to get around this, but it seems that I've made some mistake in the conditionals to get it working alright.

 

Captura de pantalla 2023-07-26 230856.png

I got the JavaScript function to work, but sadly I'm having trouble with the WebServiceResponse2 showing {"status":0,"request":"CAPCHA_NOT_READY"}, and thus printing "CAPCH" in the input text field as the captcha is for 5 characters only. I'm guessing the 10 second wait timer isn't working somehow or that I've messed up in the second Invoke web service?

Captura de pantalla 2023-07-26 230709.pngCaptura de pantalla 2023-07-26 230501.pngCaptura de pantalla 2023-07-26 230954.png

I'm attaching some screenshots as well.

 

Hope you can help me fixing this flow.

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I'm not familiar with the 2captcha service. Are you sure it is supposed to work with this specific captcha? If so, have you checked the documentation of 2captcha to check what to do when it returns this response?

    Also, I would suggest not using Split text on a JSON response. Simply use Convert JSON to custom object and then access the values as properties of the object. Simply check if %JsonAsCustomObject['request']% = CAPTCHA_NOT_READY and if it is, retry.

    ------------------------------------------------------------------------------------------------------------------------------

    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • MikeMckenzie14 Profile Picture
    3 on at

    Thanks for the asnwer Agnius!

    Apparently I still need the split text to delete the delimiter character and give it the id needed to call the 2nd Invoke web service.

    I finally managed to make it work though! Today I had an update in PAD and after installing and a lot of trial and error it seemed to me that the label RETRY I created and placed inside an the condicional If wasn't working if it wasn't placed outside the variable.

    Lucky me 2captcha service worked with said captcha (though the ticket I created wasn't as satisfactory or fast as your answer though!), just seems that sometimes takes a couple extra seconds than the 5 they ask if the status of the request hasn't changed to 1.

     

    Also i cleaned little the big If I had created and made them into separated conditionals, looking like this:

    Captura de pantalla 2023-07-29 234016.png

    Once again, thanks for your fast reply!

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Labels and the Go to action are bugged in PAD for a while now. They do not work properly in some situations. I would usually suggest using a While loop with 1=1 condition (infinite loop) and then use Exit loop when your condition is satisfied (you would need to reverse the condition though - make it exit the loop when you have achieved success).

     

    I would also like to note that your current condition in the second If block will likely never be satisfied. You are comparing a part of the response (the 'request' part) with a JSON that includes more than just the part. You should do %JsonAsCustomObject['request']% = CAPTCHA_NOT_READY as suggested previously.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 468

#2
Haque Profile Picture

Haque 370

#3
Valantis Profile Picture

Valantis 354

Last 30 days Overall leaderboard