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

[v1.0.0b] - iOS Shortcut stopped working #2092

Closed
5 tasks done
zippyy opened this issue Feb 5, 2023 · 13 comments
Closed
5 tasks done

[v1.0.0b] - iOS Shortcut stopped working #2092

zippyy opened this issue Feb 5, 2023 · 13 comments

Comments

@zippyy
Copy link

zippyy commented Feb 5, 2023

First Check

  • This is not a feature request
  • I added a very descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Mealie documentation, with the integrated search.
  • I already read the docs and didn't find an answer.

What is the issue you are experiencing?

none of the ios shortcuts seem to be working. even with an api token still cant seem to get any of them setup to work like they did with previous versions.

Deployment

Docker (Linux)

Deployment Details

No response

@michael-genson
Copy link
Collaborator

Which version of Mealie are you using? The PWA (i.e. the app icon) has had a lot of issues, but is (finally) fixed in nightly

@zippyy
Copy link
Author

zippyy commented Feb 5, 2023

The most recent 1.x version

@michael-genson
Copy link
Collaborator

Check out #1077 which is nightly (not in a major release yet). This will probably solve the issue

@zippyy
Copy link
Author

zippyy commented Feb 5, 2023

I pulled the omni-nightly tagged release and still cant get the shortcut to work.

Version

v1.0.0beta-5

Build

"20160346d78de2ccb481447099e9ae1a8632d028"

@zippyy
Copy link
Author

zippyy commented Feb 10, 2023

could we get an update documentation for the guide on the ios shortcut? I have tried everything and am running the most current nightly as of today with no luck on either the original shortcut or the v2 shortcut.

@hay-kot
Copy link
Collaborator

hay-kot commented Feb 10, 2023

https://nightly.mealie.io/documentation/community-guide/ios/

Was submitted by a community member, I don't even have an IPhone to know if it works. Someone from the community would have to resolve the issues and update the guide.

@zippyy
Copy link
Author

zippyy commented Feb 10, 2023

I can not seem to figure out how to pass the API token to it.

it seems when the api was made more secure, these shortcuts broke.

I checked the documentation for the api and even in a browser i get "Not authenticated" in the json output

@michael-genson
Copy link
Collaborator

I checked the documentation for the api and even in a browser i get "Not authenticated" in the json output

I don't have an iPhone so I have no idea what options you have, but this is the header you need to supply when authenticating with Mealie:

key:
Authorization

value:
Bearer ${YourToken}

(where your token is generated in Mealie settings)

Also be sure to check your API documentation at https://YOUR-URL.com/docs and make sure you're using the right endpoint. Hope this helps!

@zippyy
Copy link
Author

zippyy commented Feb 10, 2023

thanks. thats exactly what I needed. neither of the existing shortcuts in that guide above would work however I was able to create a new one with the info you gave me on the token. I will write up a guide and submit a PR

Edit: here is a link to the shortcut with setup questions until I can write up a full guide

https://www.icloud.com/shortcuts/cc568d1615bc4f998789f85d1ef74846

@zippyy zippyy closed this as completed Feb 10, 2023
@quoque12
Copy link

Hi @zippyy, thanks for creating and sharing the new shortcut. I create a new token, but I'm still getting the "Not authenticated" message. I'm running the omni docker, latest version. Is the shortcut working for you?

@zippyy
Copy link
Author

zippyy commented Feb 17, 2023

When your setting up the shortcut. The part where the key goes. Do you have Bearer api key here or does your just have the api key in that field? It has to have Bearer in front of it

Sorry I am on mobile right now, also you can test it be using a rest application like soap UI to make sure your key and everything is right before setting up the shortcut

I plan on writing a full guide and posting it on my blog and here on the GitHub, I just finished moving and have to get settled first. I will try to get a rough draft this weekend

@quoque12
Copy link

Yes! That did the trick. Thank you a lot. I didn't realize the bearer part had to stay there. Sry

@zippyy
Copy link
Author

zippyy commented Feb 18, 2023

Awesome! And sorry I should have been clearer in the setup questions but I set that up later at night before I went to bed. I will write a guide for others once I get settled from moving

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