-
Notifications
You must be signed in to change notification settings - Fork 18
Querying Error#2 and Paginating with Offset #18
Comments
Hi Viola, I cannot replicate with my instance. The error you're getting Can you try running the query in an http client like cURL or Postman?
|
Hi Rob, Thanks for the suggestion. Yes, I did try it in Pardot API Console first, it returned my API Key and the query run successfully. I just followed your steps in cURL (7.48.0 version from [here](curl 7.48.0 - 64-bit) ), but it gave me the error:
I double checked on the typos, but I couldn't find any. I run the PyPardot script again and got the same error as yesterday. What else could be wrong? Thanks! |
what's your operating system? |
Windows 7 Professional, 64-bit |
Ah. My statements were for Linux. Try adjusting for Windows. I had to down load the "ssh support" version and run it in insecure mode (-k). Try the commands above again. Replacing the |
Thanks, the curl command worked! I figured it must be a syntax problem :) The script from the manual though is still throwing me Error#2. If you copy paste it and insert your values, does it execute on your machine?
If I try to define api_key argument under p variable below, it doesn't work too. |
I do not get the same error. The error code you're getting is a response from Pardot. When you ran the curl commands did the second one respond with the same error? I have seen Pardot respond with inconsistent responses some times. For instance, if you attempt to send an email to someone who has unsubscribed you get a "#1 Prospect not found" error. We had to code around that. |
No, the curl commands for querying objects, as well as querying data via requests works perfectly. However, once I switch to PyPardot it respond with the error. I just asked a friend to try PyPardot script with my credentials on his laptop (he uses Python 3.0) and he received the same error... On a different note, what are the advantages of PyPardot? Essentially, it simplifies user's interaction with an API, because it handles expired API keys and 200 limits. Is my understanding correct? Thanks for your help Rob! |
I wish I could help more but it appears to be account related. You may want to contact Parrot to inquire. And yes, I find the PyPardot a huge help interacting with Pardot so I didn't have to create the libraries myself. On May 18, 2016, at 6:51 PM, ViolaRudenko notifications@github.com wrote: No, the curl commands for querying objects, as well as querying data via requests works perfectly. However, once I switch to PyPardot it respond with the error. I just asked a friend to try PyPardot script with my credentials on his laptop (he uses Python 3.0) and he received the same error... On a different note, what are the advantages of PyPardot? Essentially, it simplifies user's interaction with an API, because it handles expired API keys and 200 limits. Is my understanding correct? Thanks for your help Rob! — |
Thank you Rob! I contacted Pardot support. The interesting thing is that I still get the same error even if I use another person's admin credentials... The error traces to PyPardot itself, so the issue must be there I guess.
Any thoughts @joshgeller? |
I believe I owe you a huuuge apology. I am using the latest version from git. I was able to recreate your issue in PyPardot doing a pip install. Do me a favor and try:
|
Yay it worked!! Thank you so much @barcodez !! I will now work on figuring out how to dynamically loop through all results with offset parameter! I've got millions of rows of data in visitoractivities. |
@barcodez I struggled with the same issue and had to modify the source code in the downloaded package, only to realize that the github source actually has the proper fix. Can you update the latest package on pypi servers so others don't struggle with this in the future? |
Hi Josh,
There is not a lot of documentation/tutorials on Pardot API, so thanks a lot for creating PyPardot!
What could went wrong in prospects.py?
I wrote a while loop and used request/json libraries to get downloads data via Zendesk API call, but Zendesk response format has "next_page" attribute that makes it easy:
Is there a way to do something similar with PyPardot?
Thanks!
Viola
The text was updated successfully, but these errors were encountered: