-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
strange error (bad HTTP request) from invalid pubspec.yaml #7466
Comments
Added this to the M3 milestone. |
My guess is that "/* ... " is getting parsed as a string in YAML, so it thinks it's a package name. Then when we try to find that, it fails horribly. We should handle this better. |
Set owner to @munificent. |
Package names are now URL-encoded. We don't catch this at parse time, but now you'll get: Package "/* ... */" could not be found. which should tip you off as to the problem. Added Fixed label. |
This issue has been moved to dart-lang/pub#386. |
if I run "pub install" on this pubspec.yaml:
{
"name": "web_ui",
"author": "Web UI Authors <web-ui@dartlang.org>",
"homepage": "https://github.com/dart-lang/web-ui",
"description": "An easy way to build web apps in Dart.",
"version": "0.2.9",
"dependencies": {
/* this is a comment */
"args": "any",
"html5lib": ">=0.2.1+1 <0.2.2",
"js": "any",
"logging": "any",
"unittest": "any"
}
}
the error I got was:
HTTP error 400: Bad Request
The text was updated successfully, but these errors were encountered: