Open
Description
Describe the bug
When i try to upload, this bug happens
self.bot = client(self.config.getEnvVariable("username"), self.config.getEnvVariable("password"))
def PostImagetoInsta(self, quote: str, author: str) -> None:
"""Post the image to the instagram."""
try:
imagepath = os.path.join(os.path.dirname(__file__), "img.jpg")
caption = f"{self.utils.formatTheString(quote)}\n\n- {author} + \n #lazyinstabot \n Lazy Insta Bot \U0001f600 Coded and Managed By @rassouniqz...follow for more posts \n #programming #coding #python #bot #programmingquotes #daily #codemore codedaily #developer"
self.bot.upload(imagepath, caption)
except Exception as e:
print(e)
print("Failed to post to instagram")
Expected behavior
The Photo Must be Uplaod to insta
Logs
Error parsing error response: Expecting value: line 1 column 1 (char 0)
Error is >>
Not Found
Something went bad.
Please retry or send an issue on https://github.com/b3nab/instapy-cli
Unable to upload.
Failed to post to instagram
Env (please complete the following information):
- OS: Windows
- Python: [e.g. 3.10]
- instapy-cli Version: [e.g. 0.0.9.0]