instagram_private_api: error Bad Request
Please follow the guide below
- Issues submitted without this template format will be ignored.
- Rlease read them carefully and answer completely.
- Do not post screenshots of error messages or code.
- Put an
x
into all the boxes [ ] relevant to your issue (==> [x] no spaces). - Use the Preview tab to see how your issue will actually look like.
- Issues about reverse engineering is out of scope and will be closed without response.
- Any mention of spam-like actions or spam-related tools/libs/etc is strictly not allowed.
Before submitting an issue, make sure you have:
- [x ] Updated to the lastest version v1.6.0
- [x ] Read the README and docs
- [x ] Searched the bugtracker for similar issues including closed ones
- [x ] Reviewed the sample code in tests and examples
Which client are you using?
- [x ] app (
instagram_private_api/
) - web (
instagram_web_api/
)
Describe your Question/Issue:
Please make sure the description is worded well enough to be understood with as much context and examples as possible.
Hi, i’ve been usign this api for a few months now, i use it to schedule posts directly from my pc, all has been working fine until today. i’m getting a “Bad request” error, seems to be different from the usual instagram blocks, a friend of mine uses the same code and it also stopped working today. Instagram changed some stuff in the last update, could that be it? Is someone else having issues posting as well?
Paste the output of python -V
here:
Python 3.7.3
Code:
def new_photo(api,photo,caption,loc,com,page_id):
photo_data = open(photo, "rb").read()
size = (1080, 1080)
try:
post = api.post_photo(photo_data, size=size, caption=caption, location=loc)
print("\nPostado no Instagram!")
except Exception as e:
print("ALGO DEU ERRADO NA POSTAGEM!\n" + str(e))
print ("Tentando de novo...")
wait_for(30)
print ("Nova tentativa:")
post = api.post_photo(photo_data, size=size, caption=caption, location=loc)
print("\nPostado no Instagram!")
Error/Debug Log:
Error parsing error response: Expecting value: line 1 column 1 (char 0) ALGO DEU ERRADO NA POSTAGEM! Bad Request
About this issue
- Original URL
- State: open
- Created 5 years ago
- Reactions: 5
- Comments: 36
I need this solved ASAP.
@pbotsman instagram-private-api
and it stopped again…
😕