raycast / extensions

Everything you need to extend Raycast.
https://developers.raycast.com
MIT License
5.23k stars 2.93k forks source link

[Arc] Search Tabs Json Parse Error #13979

Closed Lior-Gal closed 4 weeks ago

Lior-Gal commented 1 month ago

Extension

https://raycast.com/the-browser-company/arc

Raycast Version

1.80.0

macOS Version

14.5

Description

Error:

SyntaxError: Bad control character in string literal in JSON at position 13483
    at JSON.parse (<anonymous>)
    at z9 (/Users/{user-email}/.config/raycast/extensions/606e26d8-b3c5-4760-8001-dccce1b872c4/search-tabs.js:94:20)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Steps To Reproduce

Arc -> Search Tabs -> [Error]

Current Behaviour

No response

Expected Behaviour

No response

raycastbot commented 1 month ago

Thank you for opening this issue!

🔔 @thomaspaulmann @zach-fuller @ankitchouhan1020 @pernielsentikaer @danpalmer @rgrunberg @tleo19 @loris @bdsqqq @xilopaint @jayeshbhole @hinzed1127 @omar-salama @underscoregeb you might want to have a look.

💡 Author and Contributors commands The author and contributors of `the-browser-company/arc` can trigger bot actions by commenting: - `@raycastbot close this issue` Closes the issue. - `@raycastbot close as not planned` Closes the issue as not planned. - `@raycastbot rename this issue to "Awesome new title"` Renames the issue. - `@raycastbot reopen this issue` Reopens the issue. - `@raycastbot assign me` Assigns yourself to the issue. - `@raycastbot good first issue` Adds the "Good first issue" label to the issue. - `@raycastbot keep this issue open` Make sure the issue won't go stale and will be kept open by the bot.
xilopaint commented 1 month ago

Can you identify if you have any tabs with special characters in their names?

Lior-Gal commented 1 month ago

Not any that are open. It never worked for me so probably there is nothing special about my current opened tabs that triggers the error. Could the pined or bookmarked urls be related?

xilopaint commented 1 month ago

Could the pined or bookmarked urls be related?

Yes, check if there are any with special characters.

Lior-Gal commented 1 month ago

I have cleaned pins with 'weird' characters such as '|' & '[]' and that worked! TNX!!

xilopaint commented 1 month ago

@raycastbot assign me

xilopaint commented 1 month ago

@Lior-Gal, I can't reproduce the issue with the characters you mentioned. Could you tell the exact titles of the tabs that caused the problem so I can fix it?

Screenshot 2024-08-18 at 13 30 27 Screenshot 2024-08-18 at 13 30 55
Lior-Gal commented 4 weeks ago

Sadly they were all deleted. Maybe there were as well: ':', ,'\'. I am Hebrew speaker, so maybe there were as well characters in Hebrew (I don't remember any, but maybe).

xilopaint commented 4 weeks ago

Sadly they were all deleted. Maybe there were as well: ':', ,''. I am Hebrew speaker, so maybe there were as well characters in Hebrew (I don't remember any, but maybe).

I tried these characters, including some Hebrew ones, and couldn't reproduce the issue. If you happen to face the issue again, please open a new issue mentioning the title of the problematic tab. I'm closing this one.

@raycastbot close this issue

Screenshot 2024-08-20 at 03 04 55
Pravin-Subramanian21 commented 3 weeks ago

I am seeing the same error under Search Tabs and Search Arc feature.

Raycast Version: 1.81

Arc Version 1.56.0

I tried closing a couple of tabs which I thought might have been an issue, but no help. If there's any particular character that I might have to look out for please let me know.

xilopaint commented 3 weeks ago

The only way is for you to try running the command in Raycast for each tab you close. When you identify the tab that is causing the problem, you need to send us the title so we can analyze it.

Pravin-Subramanian21 commented 3 weeks ago

I was trying that out, and seems that the issue was intermittent. I deleted one of my bookmarks and then tried it which then seemed to have worked. The weird part was that none of the tabs had any special characters. I tried adding some of them but the issue did not occur after that. I am sorted for now. Thanks for your reply.