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

[Rabbit Hole] ...Journal contents not opening - can you help? #16398

Open
Aavirash opened this issue Jan 16, 2025 · 19 comments
Open

[Rabbit Hole] ...Journal contents not opening - can you help? #16398

Aavirash opened this issue Jan 16, 2025 · 19 comments
Labels
bug Something isn't working extension: rabbit-hole Issues related to the rabbit-hole extension extension Issues related to one of the extensions in the Store

Comments

@Aavirash
Copy link

Extension

https://www.raycast.com/Rob/rabbit-hole

Raycast Version

1.88.4

macOS Version

15.2

Description

Error:

TypeError: Cannot read properties of undefined (reading 'url')

a:index.tsx:88:29

---
85: 
86:   const JournalItem = (item: JournalEntry) => {
87:     // set up header
88:     let markdown = `# ${item.title} \n at ${formatDate(item.createdOn)}`;
89:     if (item.type === "recording" || item.type === "search" || item.type === "conversation") {
90:       markdown  = ` _via voice prompt:_ "${item.utterance.prompt}" \n`;
91:     }
---

Fr:index.js:8:3631
    at ray-list
lt:index.js:20:24444

Steps To Reproduce

It just says "something went wrong"

Current Behaviour

No response

Expected Behaviour

No response

@Aavirash Aavirash added bug Something isn't working extension Issues related to one of the extensions in the Store labels Jan 16, 2025
@raycastbot raycastbot added the extension: rabbit-hole Issues related to the rabbit-hole extension label Jan 16, 2025
@raycastbot
Copy link
Collaborator

raycastbot commented Jan 16, 2025

Thank you for opening this issue!

🔔 @RobErskine you might want to have a look.

💡 Author and Contributors commands

The author and contributors of Rob/rabbit-hole 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.

@RobErskine
Copy link
Contributor

Hi @Aavirash thanks for logging. I will take a look. @raycastbot and team feel free to assign this to me.

@Aavirash Aavirash changed the title [Rabbit Hole] ...Not opning journal contents - can you help? [Rabbit Hole] ...Not opening journal contents - can you help? Jan 16, 2025
@Aavirash Aavirash changed the title [Rabbit Hole] ...Not opening journal contents - can you help? [Rabbit Hole] ...Journal contents not opening - can you help? Jan 16, 2025
@RobErskine
Copy link
Contributor

@Aavirash I think I see what the issue is, but to help me debug, can you let me know what type of items you have in your journal? voice notes, magic camera, etc?

If you log into the rabbit hole directly it should show you your entries like this:

Image

If you are familiar looking at developer tools, you can open up the Network tab, find the fetchUserJournal request, look at the response, and all your journal entries should be listed. The type will tell you exactly what type of entries you have.

Image

I think there is an entry type I may not be checking for that is causing your command to break.

@Aavirash
Copy link
Author

Aavirash commented Jan 16, 2025

@RobErskine Hey Rob, thanks for taking a look into this - fixing it will be enormous value for my day to day.
I just went to the inspector for Rabbithole journal - I have a bunch of entries - but the most recent ones were - type: "Beta Rabbit"
I have a mix of types - one more I spotted was type: search-memory
I have a lot of type: "magic-camera" as well. Not sure if this helps - i'm online now so do let me know if you need anything else from my side.

@RobErskine
Copy link
Contributor

@Aavirash ah okay great. yeah the beta-rabbit and search-memory are entries that i currently haven't built out. let me take a look and see if I can get a PR drafted for those, as well as making sure that the magic-camera entries have valid URLs (i think that is what is breaking your command). I'll let you know if I need anything else.

@Aavirash
Copy link
Author

type: "reminder"
type "search" also there

@Aavirash
Copy link
Author

@RobErskine alright sure. Ill keep an eye on this space. Good luck and thanks a ton!

@RobErskine
Copy link
Contributor

@Aavirash quick update from me:
I think I resolved the command breaking issue. I will continue to test.

While I'm in here, I'm picking up my rabbit r1 for the first time in awhile to try to get those other entry types you mentioned working. so far I've been able to recreate

  • beta-rabbit - utterance: "search for Flyers"
  • search-memory - utterance: "look in my journal for Fallout"
  • reminder - utterance: "remind me to buy milk"

I will create journal entry templates in Raycast for those new entry types now.

I haven't been able to create a "search" entry yet. Could you let me know what utterance or phrase you used to create that, and any type of journal entries that the rabbit can create?

@Aavirash
Copy link
Author

Aavirash commented Jan 17, 2025

Hey @RobErskine Sure thing!
so the utterance for entry type "Search" was - "I meant lam at home on GitHub." - I guess this is just a random thing that happened - but that was the utterance verbatim - maybe that's helpful.
Meanwhile found other entry types called "note", "recording", "conversation" and also "Vision" - Utterance for Vision was "Take a look at this cap and remember it."
Do you think I should already test the extension once again?

-- Just checked - didn't work. (Did reinstall and added key again)
Feel free to ask or request me anything!

@RobErskine
Copy link
Contributor

@Aavirash thanks for that, I already have the following entry types covered:

  • vision
  • magic-camera
  • ai-generated-image
  • conversation
  • note
  • recording
  • search - I actually did already have this one, so once the command is fixed you should see this too

I am adding in now:

  • beta-rabbit
  • search-memory
  • reminder

Unfortunately I will need to submit my code as a pull request and Raycast will need to approve it and merge it in before the fix will be live, which can take a few days. I will comment back here when the PR is up. Once it is if you give it a +1 it may get attention faster.

@Aavirash
Copy link
Author

Alright got it. That sounds good, just kindly let me know here when I can test the extension again.
Thank you!

@RobErskine
Copy link
Contributor

PR is up! It's a small well-documented change so hopefully it gets merged in quick.

@RobErskine
Copy link
Contributor

@Aavirash this was merged back in! Run the check for extension updates command. After that give the Journal extension a try and let me know if you run into any other issues.

@Aavirash
Copy link
Author

Aavirash commented Jan 17, 2025

Hey @RobErskine ! It works now thanks a lot! Initially it failed but then after the third try it got synced and has been synced since.
Only one thing that caught my eye - is that even when I open the extension and everything is synced and working - I see this in the bottom left corner (see screenshot) - but despite it still works as normal.
Ill let you know if something comes up - is there a way i can follow you somewhere on soicals or email maybe?
Again, really appreciate the effort : )

Image

@RobErskine
Copy link
Contributor

@Aavirash great! i will see if i can reproduce the failed to fetch latest data error.

you can find me on the Raycast community slack as Rob Erskine or feel free to message me one-off things at [email protected]. It's generally better to log issues (like this one) in Github though so if other people are having issues they'll see this thread and know it's being worked on.

Cheers! - Rob

@Aavirash
Copy link
Author

@RobErskine Sounds great! And noted.
Cheers!

@Aavirash
Copy link
Author

@RobErskine The extension was giving issues again and I wanted to ask you directly about this as right now again it was showing the --- "Something is wrong" message and not loading anything.
How does the "Update Access Token" command work exactly?
As I observed that when the extension was failing when I clicked the UpdateToken command it came back up again and started again working.
Is this normal? Would be nice to know the process so I am not alarmed later.
Thank you!

@RobErskine
Copy link
Contributor

@Aavirash unfortunately that is a known issue that the community has been trying to get around for awhile. Rabbit doesn't offer an official API so most of what we try to do is reverse engineer how they apply accessTokens.

The update access token background command tries to get around this by attempting to refresh your access token by performing a rote background task. This unfortunately doesn't work 100% of the time.

I've outlined this as a known issue in the the README. You may need to manually reset your accessToken from time to time by manually copy/pasting it from the network tab like when you first set up the command.

@Aavirash
Copy link
Author

@RobErskine Alright, all is clear.
Appreciate your answer & support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working extension: rabbit-hole Issues related to the rabbit-hole extension extension Issues related to one of the extensions in the Store
Projects
None yet
Development

No branches or pull requests

3 participants