Closed verafide closed 6 years ago
Judging from what I can see from the stack trace, there is a problem with parsing prefs.json.
When you list objects in JSON, you have to put a comma in between objects, but not after the last:
"ids": { "25025320": "instagram", "150514": "pketron" },
Are you sure that you put a comma after every pair except the last?
If you keep getting the error, please post your prefs.json.
@hoschiCZ I've found my problem! My cookie contained this s_network="";
Between the quotes is apparently where the error was expecting ,
I removed that part entirely and it ran perfectly from what I can tell.
@hoschiCZ Thanks for your work on this script so far. Instagram has made some changes which seem to have broken it. As far as you know is it still functional or is this just a problem on my end again? I can post the very long error if necessary.
Still works for me. Post the error, please.
@verafide Try not to remove that part, but escaping the required data. For example, if the cookie string contains "
, replace with \"
.
@verafide Have you resolved the problem? If you haven't yet and the error is different from the "json.decoder.JSONDecodeError" you posted earlier, please open a new issue.
The error was probably https://github.com/hoschiCZ/instastories-backup/issues/2 , now suddenly I am able to reproduce too.
See #2 for fix of your latter problem.
if the string is stored in an object, how to debug this?
@Darren-Li Could you elaborate?
i am also getting same error . Below is the Dictionary that i am trying b'{\n "emp_id":"3",\n\t"Name":"Hari",\n\t"Age""26,\n\t"Location":["USA"]\n}'
but i am getting error Expecting ':' delimiter:
@nikdev007 I believe there's a ":" missing between "Age" and 26
I've added the cookie and IDs of a couple users but am just presented with what you see above. Perhaps Instagram has made changes to stories that's broken the script?