Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[BUG] Did signup() ever work? #2052

Open
galaSYT1 opened this issue Nov 5, 2024 · 0 comments
Open

[BUG] Did signup() ever work? #2052

galaSYT1 opened this issue Nov 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@galaSYT1
Copy link

galaSYT1 commented Nov 5, 2024

Try Instagrapi SaaS with a free trial https://hikerapi.com/p/5GBWznd3

Describe the bug
When calling the signup function with correct parameters, an error "Invalid format String" arises. This happens due to a line in signup.py in the function accounts_create() -> timestamp = datetime.now().strftime("%s")
This is not a valid strftime.

To Reproduce
from datetime import datetime

def main():
timestamp = datetime.now().strftime("%s")
print(timestamp)

if name == 'main':
main()

Expected behavior
No error appears on account creation and an account is being created. I am not sure what the correct approach is because I tried changing up the timestamp variable but I got an error on return self.private_request("accounts/create/", data)

Desktop (please complete the following information):

  • OS: Windows 10
  • Python version 3.11.4
  • instagrapi version 2.1.1
@galaSYT1 galaSYT1 added the bug Something isn't working label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant