question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Response [400]" (Bad Request) on initiating conversation

See original GitHub issue

Hello and Greetings Mr. Borislav Stoilov.

I have been trying to initiate a conversation but I get a “Response [400]” which means Bad Request. Other things such as get_user_overview() or search() or pin() work perfectly fine.

My code is as following:

from py3pin.Pinterest import Pinterest

pinterest = Pinterest(email=my_email, password=my_password, username=my_username, cred_root=my_cred_root)
result = pinterest.initiate_conversation(user_ids=my_user_id, message='testing...')

print(result)

Output:

<Response [400]>

Any idea what might be causing this issue?

Thank you. 😃

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
bstoilovcommented, Nov 17, 2019

So the version is: Version: 0.3.0

That is indeed the latest one. One thing I noticed

user_ids=my_user_id my_user_id is array right?

1reaction
bstoilovcommented, Nov 17, 2019

Glad to hear that it is now working 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a Bad Request Error 400 and How Do You Fix It?
Another possible reason for the 400 Bad Request error message is deceptive request routing. The server sees all those issues as client-initiated errors....
Read more >
User/lead initiated conversation using email returns 400 bad ...
This returns a 400 bad request response, if 'email' is used in the from field. Logs. PHP Fatal error: Uncaught Http\Client\Common\Exception\ ...
Read more >
Teams - Create a chat - Bad Request 400 error
Hi Jay - it's working for me now. I initially got the same error, but it was because the connection/account I was using...
Read more >
creating conversation using an email returns 400 bad request
Actual behavior: This returns a 400 bad request response, if 'email' is used in the from field. Logs: PHP Fatal error: Uncaught Http\Client\ ......
Read more >
400 Bad Request Error: What It Is and How to Fix It
The 400 Bad Request Error is an HTTP response status code indicating that the server was unable to process the request sent by...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found