instagram_private_api icon indicating copy to clipboard operation
instagram_private_api copied to clipboard

How to use "user_detail_info" with a user name that contains a period inside?

Open BillyBonaros opened this issue 3 years ago • 2 comments

  • [x] Updated to the lastest version v1.6.0
  • [x] Read the README and docs
  • [x] Searched the bugtracker for similar issues including closed ones
  • [x] Reviewed the sample code in tests and examples

Which client are you using?

  • [x] app (instagram_private_api/)
  • [ ] web (instagram_web_api/)

Describe your Question/Issue:

When I'm trying to use 'user_detail_info' with a user name that has a period inside (for example: discover.greece) I'm getting an error. I tried to escape the '.' character using regex and \ but I got the same error again. Any suggestions? Thanks!

Error/Debug Log:

Error parsing error response: Expecting value: line 1 column 1 (char 0)

BillyBonaros avatar Apr 25 '22 07:04 BillyBonaros

Instagram has been returning a non-JSON serializable response, so you get this error. Try with valid username.

ali-zahedi avatar Apr 25 '22 08:04 ali-zahedi

Instagram has been returning a non-JSON serializable response, so you get this error. Try with valid username.

It's a valid user name. The error is because there is a "." in the user name. Please read the issue description.

BillyBonaros avatar Apr 25 '22 09:04 BillyBonaros