shady2k / logseq-inbox-telegram-plugin

MIT License
78 stars 5 forks source link

[Bug] Cannot Get Settings #23

Open hodanli opened 2 years ago

hodanli commented 2 years ago

i am getting this issue time to time. i can only solve the issue by reinstalling and redoing all settings.

image

shady2k commented 2 years ago

Could you compare your settings with this broken settings from json file? What's the difference? What version of Logseq and plugin version do you use?

hodanli commented 2 years ago

i think the settings file is deleted. i cannot open the settings.

https://user-images.githubusercontent.com/6535865/176010733-683e4b78-5cca-4fa1-85a0-99ecc76e355f.mp4

i am using logseq 0.7.5 and inbox-telegram 0.0.8.

the issue was the same in the previous logseq and plug-in versions. i thought i should wait for the new version of the plugin. i decided to write when the issue is repeated. this also happened for one of my friend i recommended the plugin.

nanjade commented 2 years ago

Yes,I have same problem, How to fix it?

shady2k commented 2 years ago

I can't reproduce this bug. Can you post json file with settings?

hodanli commented 2 years ago

these are my settings:

{
  "disabled": false,
  "botToken": "MY_TOKEN",
  "authorizedUsers": ["@myusername"],
  "addTimestamp": false,
  "pollingInterval": 60000,
  "inboxName": "#TelegramInbox"
}
shady2k commented 2 years ago

@hodanli, I just checked this settings and they seems correct. I haven't any error with this settings.

svndco commented 2 years ago

I had a similar issue... if I opened the json in Xcode but if I opened it in ATOM I didn't have the issue any longer. But if I opened in XCODE then had to remake the JSON

shady2k commented 2 years ago

@svndco, great, can you compare these jsons? Or just pack it in archive and post here.

hodanli commented 1 year ago

unfortunately this bug still is an issue for me. it happens out of blue after usage of two - three weeks. than i delete and reinstall to solve the issue.

another issue maybe related with this one is that settings for this plug-in is not seen in logseq settings until i update the json with my telegram token. than the plug-in is visible in the logseq settings.

side note: please add token parameter to default json settings file comes when i install the plug-in. i have to copy paste from the github page to be sure for the right syntax. i am sure other people would find it useful too.

thanks for the great plug-in by the way. i use it everyday.

shady2k commented 1 year ago

Hey, @hodanli, thank you for feedback, I fixed incorrect behavior while initialize plugin settings. Hope it helps. 5b7b322a0c031d8f085d17507de8abe31d370a70

sitex commented 2 months ago

I have same issue. Looks like the file: logseq-inbox-telegram-plugin.json was corrupted because I cannot open it

And it works after I reinstall the plugin

shady2k commented 2 months ago

Can you send me this corrupted file?