-
Notifications
You must be signed in to change notification settings - Fork 7
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
Error when working with Firefox Addons API #23
Comments
|
Hmm, I thought I print out a URL that you can open in the browser to see the validation errors. But maybe this error is being throw before that?
What version did you try and use? Like |
Yeah, you're right. Interestingly, after the changes I described, the extension is successfully unloaded not by UUID, but by extension name from the URL. Should it be possible to allow both options? |
like If the extension uploads successfully, I get a link to a warning log, but when I tried to submit an extension with that version number, I just get 400 Bad Request, "Upload is not valid". with no link to the error log |
Ok, I assume this is something their linter would catch... Probably be a good idea to add https://www.npmjs.com/package/addons-linter, it just has a ton of dependencies, and I'm not sure it's worth it's size. You could write a module that runs the linter before zipping, but I'd need to add some zip-specific hooks to make that easier. But I'm surprised you were able to produce a manifest with a version like that in the first place, WXT should strip off the invalid digits, unless you explicitly override that behavior in the |
I don't use WXT, but yes, I overwrite the version number when building the beta version. I don't think a linter should be added to publish-browser-extension. But it is strange that web-ext shows error log in cases when this project does not. |
Oh sorry, haha, for some reason, I thought I saw that in one of your comments. I'm starting to get all the issues for a couple of my repos mixed up. I would just run the linter before you do a release, that should catch things like this. But yeah, it is weird that the API didn't provide a helpful error message. |
When trying to submit my extension to Firefox Addons I get an error
The
wrappedExtensionId
method is required to wrap the extension ID in quotes and as stated in the project code, it is required by the API.But I removed these lines:
And now the sending of the extension is successful (at least running with the
DRY_RUN
key)UP: I had an error in the extension (the version number did not meet the length requirements) and got this error:
When trying to submit using
web-ext sign
I got a more elaborate error log indicating that the error was in the version number. Is it possible for publish-browser-extension to show a detailed error log?The text was updated successfully, but these errors were encountered: