Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
0xrasla opened this issue Jun 2, 2022 · 2 comments

Comments

@0xrasla
Copy link

0xrasla commented Jun 2, 2022

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]
@0xrasla 0xrasla changed the title [BUG] Not Found Error [BUG] Upload function Says, Error parsing error response: Expecting value: line 1 column 1 (char 0) Jun 2, 2022
@gargabhisar
Copy link

I am too getting the same error.

@gargabhisar
Copy link

[IG] not found cookie/cookie_file >> login as default
[1/20] files_to_upload/saree_1.jpg
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


OSError Traceback (most recent call last)
Input In [2], in <cell line: 18>()
24 print(info_file2)
25 time.sleep(1)
---> 26 cli.upload(file_da_caricare)
27 quantity += 1

File ~\anaconda3\lib\site-packages\instapy_cli\cli.py:153, in InstapyCli.upload(self, file, caption, story)
151 print('Done.')
152 else:
--> 153 raise IOError("Unable to upload.")
154 return res

OSError: Unable to upload.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants