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.

[BUG] Images are being uploaded without captions

See original GitHub issue

Describe the bug Images are being uploaded without captions.

To Reproduce Happens every time.

from instapy_cli import client

user = input('username')
password = input('password')
text = 'test #foo #bar'

with client(username, password) as cli:
    cli.upload('./testfile.png', text)

Expected behavior Images with the text variable as caption on Instagram.

Env (please complete the following information):

  • OS: Linux Mint 18.3
  • Python: 3.6
  • instapy-cli Version: 0.0.12

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
Donearmcommented, Sep 27, 2019

Hadn’t been trying for a few weeks but today it worked (same command as my last comment). I guess it was an issue on Instagram’s side.

0reactions
Donearmcommented, Aug 21, 2019

Yes, both using “caption=text” and just the text variable. The complete code to upload is:

with client(username, password) as cli:
    cli.upload(sys.argv[1], text)

An example caption would be:

@accountname •\r\n•\r\n•\r\n•\r\n•\r\n #hashtag1 #hashtag2 #hashtag3

And so on with the hashtags. Last week I had a similar issue where the hashtags and periods were being posted but not the accountname, nor the newlines were working (only the first one as per #45 ). Now the whole caption is absent

Read more comments on GitHub >

github_iconTop Results From Across the Web

8 Fixes for Instagram Post Captions Not Showing Up in Feed
1. Check the Instagram Server Status. For starters, a server-side issue may be resulting in your Instagram posts' captions not showing ...
Read more >
Why does Instagram remove the caption before posting my ...
In majority of cases, however, the caption is not appearing after adding a post, if you add too many hashtags. Remember that there's...
Read more >
No Captions Found Instagram Reels? Try These 10 Fixes
When there's a glitch within Instagram, it can cause unexpected errors with a common one being captions not uploading.
Read more >
When your Instagram captions suddenly disappear... - LinkedIn
The caption appeared along with the image this time. ... They do take a few hours or days, but Instagram support should be...
Read more >
Instagram Not Posted Yet Try Again Error? Fixes 2022
If you still can't upload photos from the other device, your account may be restricted. Some new users have managed to bypass these...
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