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

Garmin does not recognise this MapShare Identifier #2

Closed
Lastone17 opened this issue Jul 19, 2023 · 11 comments
Closed

Garmin does not recognise this MapShare Identifier #2

Lastone17 opened this issue Jul 19, 2023 · 11 comments

Comments

@Lastone17
Copy link

Lastone17 commented Jul 19, 2023

Hi,
I want to use your plugin but I am getting the following errors:
[Info] https://explore.garmin.com/feed/share/xxx(request_ready)
[Error] Garmin does not recognise this MapShare Identifier. (identifier)
[Error] Garmin provided an empty response. Check your MapShare Settings. (empty_response)

But I can download the feeds by hand, they are working perfectly fine. what I am doing wrong?

@morehawes
Copy link
Collaborator

Hi @Lastone17,

Sorry to hear you have been experiencing issues. This is quite hard to diagnose without an actually Mapshare Identifier. What device are you using? Have you double checked all settings?

Cheers,
Joe

@Lastone17
Copy link
Author

Lastone17 commented Jul 27, 2023

Double checked everything. Identifier: sailingnebula
Does your plugin still works on wordpress websites?
Because of the garmin API you just get the data as attachment not as response body.
Im using garmin inreach 2

@morehawes
Copy link
Collaborator

Hi @Lastone17,

Thanks for the extra detail.

Does your plugin still works on wordpress websites?

It is definitely working for me, I just got back from a trip where I used it.

I just took a look using your identifier and I too am seeing unexpected results (i.e. a completely empty response):

https://explore.garmin.com/feed/share/morehawes (downloads most recent track point as KML)
vs
https://explore.garmin.com/feed/share/sailingnebula (completely empty response)

Because of the garmin API you just get the data as attachment not as response body. Im using garmin inreach 2

But I can download the feeds by hand

Could you elaborate on these? Are you able to provide any URLs?

I just recently found out that I have a "legacy" account, i.e. supported by Roadpost instead of Garmin so my guess is that there lies the difference.

The only documentation I have seen is very out of date and the Explore Garmin portal is the worst. Perhaps you have a different portal?

If this is the case I will have to put up a message warning other users until I am able to test with the new Garmin system.

It's also possible that I am being dumb and missing something obvious. I appreciate any more information you can provide.

Cheers,

Joe

@Lastone17
Copy link
Author

Lastone17 commented Jul 29, 2023

@morehawes it changed a bit I guess.
https://inreach.garmin.com/Feed/Share/Sailingnebula?d1=2023-07-16T10:00z&d2=2023-07-29T12:00z
OR https://explore.garmin.com/feed/share/sailingnebula?d1=2023-07-16T10:00z&d2=2023-07-29T12:00z
if you test this URL you will get a response. (note the d1 & d2 provided). But with your plugin it doesn't seem to work.
You get the response as attachment, I don't know how your plugin handles this?
Documentation I got: https://support.garmin.com/en-US/?faq=tdlDCyo1fJ5UxjUbA9rMY8
If you scroll further down you get some more informations.

Would be awesome if we could use your plugin with the "new" API.

@morehawes
Copy link
Collaborator

Hi @Lastone17,

Thanks again for the extra detail, I really appreciate it as it would be great to get this figured out.

https://inreach.garmin.com/Feed/Share/Sailingnebula?d1=2023-07-16T10:00z&d2=2023-07-29T12:00z OR https://explore.garmin.com/feed/share/sailingnebula?d1=2023-07-16T10:00z&d2=2023-07-29T12:00z

The first URL redirects to the second (explore.garmin.com/feed/share), so that seems to be the one to use.

(note the d1 & d2 provided)

These are optional - leaving them off should just download the most recent track point, so I'll ignore them for now to keep things simple.

Documentation I got: https://support.garmin.com/en-US/?faq=tdlDCyo1fJ5UxjUbA9rMY8

Yes that's the only documentation I have been able to find also.

You get the response as attachment, I don't know how your plugin handles this?

Yes, this is the expected behaviour. The plugin downloads the KML if triggered by the URL.

if you test this URL you will get a response.

I still get a completely empty response, same as before. Tested on multiple browsers/devices:

https://explore.garmin.com/feed/share/morehawes (downloads most recent track point as KML)
vs
https://explore.garmin.com/feed/share/sailingnebula (completely empty response)

Screenshot 2023-07-29 at 8 01 25 AM

Which is really weird if it is working for you :-/ The only thing I can think of is that you have a cookie or session data that is making it work for you but not me. Could you try your URL in a private/incognito browser window (i.e. a fresh browser window with cleared cookies/history) to see if you get the same results?

Thanks again.

@Lastone17
Copy link
Author

Lastone17 commented Jul 30, 2023

@morehawes you are right, it also worked once. I also tested with postman no response for my mapshare whatsoever.
image
But my settings should be alright, so it once worked for download, that's really weird.
Do you know any settings I should check?
If you check https://share.garmin.com/sailingnebula you will see the recent track, so it should work for the KML as well?

EDIT: just copied the link again from my settings, now it seems to work again (?!)
check https://share.garmin.com/Feed/Share/Sailingnebula

morehawes pushed a commit that referenced this issue Jul 30, 2023
As the existing one was not working for some users. Thanks to <a href="https://github.com/Lastone17">Lastone17</a> for <a href="https://github.com/morehawes/inreach-mapshare/issues/2">raising this issue</a>.
@morehawes
Copy link
Collaborator

Hi @Lastone17,

Bingo! It seems that they have changed the endpoint from:

https://inreach.garmin.com/feed/share/

to:

https://share.garmin.com/feed/share/

but did not update the docs.

With the old endpoint working for my ("legacy") account but not yours.

Luckily the new endpoint seems to work for both, so I have updated that in version 1.2, available on the master branch.

Please let me know if you spot any more issues and many thanks for persevering to get this fixed! :0)

Cheers,

Joe

@Lastone17
Copy link
Author

Lastone17 commented Aug 2, 2023

@morehawes still getting the same error
image
Seems like it's not changed?
https://explore.garmin.com/feed/share/Sailingnebula -> No response
https://share.garmin.com/Feed/Share/Sailingnebula -> Response

Can you maybe test the new plugin version with my URL?

On the installation it also still says Version 1.1 and not 1.2

@morehawes
Copy link
Collaborator

On the installation it also still says Version 1.1 and not 1.2

My bad. Should be 1.2 now with the fix included. Please let me know how you get on.

Cheers,

Joe

@morehawes morehawes reopened this Aug 2, 2023
@Lastone17
Copy link
Author

Lastone17 commented Aug 2, 2023

@morehawes it's working now thanks! Just on mobile it doesn't seem that responsive, but anyways good work!
Fullscreen button from openstreetmap seems very buggy

@morehawes
Copy link
Collaborator

it's working now thanks!

Great! :)

Just on mobile it doesn't seem that responsive, but anyways good work! Fullscreen button from openstreetmap seems very buggy

Feel free to open a separate issue, ideally with a URL if you believe there is a bug.

Cheers,

Joe

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

2 participants