Skip to content

[BUG] Upload function Says, Error parsing error response: Expecting value: line 1 column 1 (char 0) #113

Open
@0xrasla

Description

@0xrasla

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]

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions