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

Conversion Error - Get Dictionary failed because Shortcuts couldn't convert from Media to Dictionary #2

Open
wildenrou opened this issue Nov 9, 2023 · 9 comments

Comments

@wildenrou
Copy link

Hello,
First of all, thank you for working on this truly brilliant shortcut. I had used it in my morning routine last year and decided to reintegrate it recently after updating to the latest version. However, I am no longer able to make it work despite having gone through the full setup again and having tried to reinstall the shortcut multiple times.

Each time, I get the error message "Conversion Error - Get Dictionary failed because Shortcuts couldn't convert from Media to Dictionary" and the screenshots below show where it gets stuck each time. I really don't know much about designing iOS shortcuts so could you please tell me how to fix this issue?

IMG_0668
IMG_0669

Thanks again!

@nicolodiamante
Copy link
Owner

Hi, @wildenrou

Thank you for reaching out and sharing the details of the issue you're encountering with the shortcut. I'm sorry to hear about the inconvenience this has caused.

Based on the error message and the screenshots you've provided, it seems likely that the issue might be related to the API configuration, especially with ElevenLabs. If you're using a free account with ElevenLabs, there's a possibility that you might have exceeded the available character limit, which could lead to such errors.

Here's what I recommend:

  1. Check Your ElevenLabs API Usage:

    • Log into your ElevenLabs account and check if you have exceeded the character limit for your free account. If you have, you might need to wait for the limit to reset or consider upgrading your account for more usage.
  2. Verify API Keys:

    • Ensure that the API keys for both OpenAI and ElevenLabs are correctly entered in the shortcut settings.
    • For OpenAI, retrieve your API key from the OpenAI website under your account settings.
    • For ElevenLabs, do the same on their website.

In the meantime, I have released a new update that might also help resolve this issue. You can download it from the following link: here, or find it in the "Read Me" page on our GitHub repository. After verifying and updating the API keys, and ensuring your usage limits are in check, please try running the shortcut again.

If the problem persists after these steps, please let me know.

@wildenrou
Copy link
Author

Thanks very much @nicolodiamante ! I will try the proposed fix and the new version this eveninig and will let you know if it resolves the issue. Cheers!

@wildenrou
Copy link
Author

wildenrou commented Nov 16, 2023

@nicolodiamante I verified and completed all the above steps your proposed. My API keys and accounts are working and in order, the API keys are properly entered into the settings and I tried again with the new version of the shortcut linked in your last response. Still getting the same error at the same step of the shortcut run. PLease let me know if you have other fix for this. Thanks again very much for your help!

@nicolodiamante
Copy link
Owner

Hi @wildenrou,

Thank you for the update. We must pinpoint where the error is happening. Based on your previous messages, we need to verify each step in your API call setup.

Here’s the critical section where the error seems to be occurring: Please review the configuration in this section closely. Check the API URL, Headers, and especially the API Key variable to ensure there are no extra spaces or incorrect values.

Error Section

To aid in diagnosing the issue could you provide further screenshots showing the entire flow, especially the point where it fails?

Additionally, confirm every field is filled accurately in the setup process. An overlooked space or character can sometimes cause unexpected errors.

Your patience is greatly appreciated as we work through this.

@JoPadOfficiel
Copy link

Hello community,

I hope you are doing well. I am reaching out for assistance with a persistent technical issue related to the "Wake Me Up" shortcut. The error I'm encountering is "Conversion Error - Get Dictionary failed because Shortcuts couldn't convert from Media to Dictionary". Despite my efforts and reviewing various forums and tickets, no solution has resolved the problem. I have tried with the August, November, and the latest current versions, but the issue persists.

Here is a summary of the steps I have taken so far:

Checking ElevenLabs API Usage:

  • I verified the status of my ElevenLabs account to see if I had exceeded the character limit allowed for the free account. - However, I have not reached the limit, even after creating several different accounts.

Verification of API Keys:

  • API keys for OpenAI and ElevenLabs were correctly entered in the shortcut settings.
  • I retrieved my OpenAI API key from the OpenAI website in my account settings.
  • I did the same on the ElevenLabs website.

Verification of API URL:
I carefully examined the API URL, and I did not detect any errors on my part.
Despite these checks, the problem persists. The history of my ElevenLabs account indicates that the shortcut correctly generates messages from ChatGPT and performs text-to-speech with the chosen voice.

Capture d’écran 2024-01-11 à 22 52 21

However, the final conversion to obtain audio output on the device consistently fails. I even tried disabling ElevenLabs and opting for the OpenAI text-to-speech, which works correctly. Unfortunately, I cannot replicate this success with ElevenLabs enabled.

Capture d’écran 2024-01-11 à 23 00 58

If anyone has suggestions to resolve this situation or has encountered a similar issue, I would be extremely grateful for any assistance you could provide.

Audio generation history with the voice chosen in the shortcut on my ElevenLabs (account free) :

Capture d’écran 2024-01-11 à 22 44 02

Thank you in advance for your valuable help!

Best regards,

@nicolodiamante
Copy link
Owner

Hi @JoPadOfficiel,

Could you guide me step-by-step through the entire setup process for the shortcut? I want to thoroughly understand each setting to determine if there's anything within the setup that might be causing the error. Your detailed walkthrough would be incredibly helpful in pinpointing any potential issues. Thank you!

@JoPadOfficiel
Copy link

JoPadOfficiel commented Jan 26, 2024

Hello @nicolodiamante, I hadn't received the GitHub notification about your feedback. I'm responding to you now.

Here is the complete configuration of "Wake Me UP." Firstly, in the first video, you'll find the entire setup of the shortcut. I use the Data Jar application to access API keys. As shown in the video, I had to remove the "Decode value with base64" variables for the shortcut to accept the API keys from ChatGPT and ElevenLabs. Then, in the video, I realized I had forgotten to change the ElevenLabs API key, and I corrected it live. However, the issue persists with the message "**Conversion Error - Get Dictionary failed because Shortcuts couldn't convert from Media to Dictionary.**"

https://mega.nz/file/nVcEjTCQ#UmJ-BaEMMx9KYLzHog4JrNXlorMHnIGPJk0XEAauqlQ

In the second video, I tried in "monolanguage" mode, but unfortunately, it didn't resolve the error.

https://mega.nz/file/vZFDwaLI#F2VrtL4vu3IHEbeT0ADWluxXZEfK3e7ZkpG-M0DCT9w

Finally, in the third video, to demonstrate that the problem truly stems from text retrieval, I showcase it with ChatGPT's voice, and it works perfectly.

https://mega.nz/file/ONdEhaTT#AwLqjPu_SwOblzRE5npp0_DpnRWsDtmorZocv18v0jY

I want to clarify that I'm using the free version of ChatGPT, as well as the free version of ElevenLabs. When I run out of credits to generate a voice, I create a new account. Also, thanks to Apple for the "Hide My Email" feature, which allows generating as many emails as needed.

Device: iPhone 15 Pro Max (iOS version 17.2.1).

Here is the screenshot of the history of the three generations with the voice "Adam" on ElevenLabs. Thanks for resolving the issue.

Capture d’écran 2024-01-26 à 17 02 18

Best regards,

@games906
Copy link

I am also having the same issue! At first it was slightly different error as the voice model I selected hadn’t been added to the shortcut list of voices with its unique ID code. After resolving that, I ran into the identical media error above. The data is successfully collected, sent to OpenAI and ElevenLabs, and even converted, but it doesn’t make it back to my phone and instead am given the “ Conversion Error - Get Dictionary failed because Shortcuts couldn't convert from Media to Dictionary.” Almost there!!

@games906
Copy link

Is it possible elevenlabs have changed their api delivery? It seems they’ve done renovations on various features in the past months so it’s possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants