Shopify / shopify-app-template-node

MIT License
867 stars 391 forks source link

"nbf" claim timestamp check failed because of different timestamps #1218

Closed sapeol closed 1 year ago

sapeol commented 1 year ago

Issue summary

npm run dev seems to show different time than the current system time causing "nbf" claim timestamp check failed . I am pretty sure i am doing something wrong here but i am not sure what



## Expected behavior

It should be the same time as now which is around 11pm

## Actual behavior
Time is way off

<!-- What actually happens? -->

## Steps to reproduce the problem

1. Be on debian sid with the same packages
2. Run `npm init @shopify/app@latest`
3. Run `npm run dev`
sapeol commented 1 year ago

I just tried it on my windows box and it worked as expected so it was a problem on gnome's end. I had to install couple packages to setup the time remotely from ntp server.

sudo apt-get install ntp sudo apt-get install ntpdate

and then sudo ntpdate ntp.ubuntu.com

This should fix your clock for your local time.

reference : askubuntu

RienNeVaPlus commented 1 year ago

This happend to me on windows. I was able to fix it by going to Windows Settings > Date and time > Sync now.

uilyam commented 7 months ago

I ran into this on Mac as well. I had manual time set, change it to automatically sync in the settings resolved it. Ran into the same issue with the remix template.