Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Fix wrangler dev session expiration #2071

Merged
merged 6 commits into from
Sep 16, 2021
Merged

Conversation

Electroid
Copy link
Contributor

@Electroid Electroid commented Sep 15, 2021

This PR fixes the issue described in #2068. API errors related to syntax or preview token return the same bad_request status code, and the changes should address these two particular cases.

In the future, it would be great to update the legacy client code for better API error handling.

@Electroid Electroid changed the title Frank/fix dev refresh preview Fix wrangler dev session expiration Sep 15, 2021
Comment on lines 55 to 57
StdOut::warn(&format!(
"{}\nPlease terminate `wrangler dev` using Ctrl+C.",
&err.0
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, can we not restart it for the user? That's essentially what it use to do.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I believe we can do that. Fixing

checksum = "66c99696f6c9dd7f35d486b9d04d7e6e202aa3e8c40d553f2fdf5e7e0c6a71ef"
dependencies = [
"libc",
]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like a good change, but I'm not sure what it has to do with this PR?

src/commands/dev/edge/watch.rs Outdated Show resolved Hide resolved
src/commands/dev/edge/watch.rs Outdated Show resolved Hide resolved
@ocsfrank ocsfrank marked this pull request as ready for review September 15, 2021 20:52
@ocsfrank ocsfrank requested a review from a team as a code owner September 15, 2021 20:52
@threepointone
Copy link
Contributor

Please add a description to this PR.

@caass caass merged commit e3e6cef into master Sep 16, 2021
@delete-merged-branch delete-merged-branch bot deleted the frank/fix-dev-refresh-preview branch September 16, 2021 13:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants