Comments (9)
Sadly it didn't work. The error was a little different but not much more useful:
-- HTTP PROBLEM ----------------------------------------------------------------
The following HTTP request failed:
<https://package.elm-lang.org/register?name=nunntom%2Felm-material-icons&version=1.0.0&commit-hash=30fc0bf1d46052c0140ca31ab2db141a31464350>
Here is the error message I was able to extract:
HttpExceptionRequest Request { host = "package.elm-lang.org" port = 443
secure = True requestHeaders = [("Content-Type","multipart/form-data;
boundary=----WebKitFormBoundaryNNoMKxsybCEQ7soS"),("User-Agent","elm/0.19.0"),("Accept-Encoding","gzip")]
path = "/register" queryString =
"?name=nunntom%2Felm-material-icons&version=1.0.0&commit-hash=30fc0bf1d46052c0140ca31ab2db141a31464350"
method = "POST" proxy = Nothing rawBody = False redirectCount = 10
responseTimeout = ResponseTimeoutNone requestVersion = HTTP/1.1 }
(StatusCodeException (Response {responseStatus = Status {statusCode = 413,
statusMessage = "Request Entity Too Large"}, responseVersion = HTTP/1.1,
responseHeaders = [("Server","nginx/1.10.3 (Ubuntu)"),("Date","Fri, 03 Mar
2023 21:27:58
GMT"),("Content-Type","text/html"),("Content-Length","208"),("Connection","close")],
responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' =
ResponseClose}) "<html>\r\n<head><title>413 Request Entity Too
Large</title></head>\r\n<body bgcolor=\"white\">\r\n<center><h1>413 Request
Entity Too Large</h1></center>\r\n<hr><center>nginx/1.10.3
(Ubuntu)</center>\r\n</body>\r\n</html>\r\n")
from compiler.
@rektdeckard Thanks for the suggestion, sadly this didn't work in my case. :(
from compiler.
Thanks for reporting this! To set expectations:
- Issues are reviewed in batches, so it can take some time to get a response.
- Ask questions in a community forum. You will get an answer quicker that way!
- If you experience something similar, open a new issue. We like duplicates.
Finally, please be patient with the core team. They are trying their best with limited resources.
from compiler.
I don't think it will work but maybe you can get more information by trying to publish with elm 0.19.0?
At least that works for some projects with some sort of package json parsing error - though that seems to be unrelated to your issue
from compiler.
maybe too much in your repo? elm-stuff folder is checked in, or something like that?
from compiler.
maybe too much in your repo? elm-stuff folder is checked in, or something like that?
Nothing like that checked in. I've now tried removing all extraneous codegen and npm stuff, leaving only the barebones elm. Still it fails with the same message.
The full repo is 4.2mb. Is it not possible to publish a library of this size?
from compiler.
@nunntom You might want to try increasing the git http post buffer size, as this failure seems to be happening when the CLI posts the automatic version commit to your repo:
git config --global http.postBuffer 1048576000
This, then downgrading to 0.19.0 worked for me.
from compiler.
Update.
By checking the source of elm publish I found out that it sends a POST request to the package server with a payload containing among other things the docs.json. I stripped out all the doc comments from most of the functions and now with elm 19.0.0 I get this message which is a little more helpful:
The following HTTP request failed:
<https://package.elm-lang.org/register?name=nunntom%2Felm-material-icons&version=1.0.0&commit-hash=494a8b30db6be9855a27578e22928ddba686ad00>
Here is the error message I was able to extract:
HttpExceptionRequest Request { host = "package.elm-lang.org" port = 443
secure = True requestHeaders = [("Content-Type","multipart/form-data;
boundary=----WebKitFormBoundaryAkTA1zJbXHtGn1O6"),("User-Agent","elm/0.19.0"),("Accept-Encoding","gzip")]
path = "/register" queryString =
"?name=nunntom%2Felm-material-icons&version=1.0.0&commit-hash=494a8b30db6be9855a27578e22928ddba686ad00"
method = "POST" proxy = Nothing rawBody = False redirectCount = 10
responseTimeout = ResponseTimeoutNone requestVersion = HTTP/1.1 }
(StatusCodeException (Response {responseStatus = Status {statusCode = 400,
statusMessage = "Bad Request"}, responseVersion = HTTP/1.1, responseHeaders
= [("Server","nginx/1.10.3 (Ubuntu)"),("Date","Fri, 24 Mar 2023 10:06:37
GMT"),("Transfer-Encoding","chunked"),("Connection","keep-alive")],
responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' =
ResponseClose}) "Failure uploading your package:\n - Your docs.json is too
big. Must be less than 768kb.\nLet us know if this limit is too low!")
Compare this with the less helpful message on 0.19.1
-- PROBLEM PUBLISHING PACKAGE --------------------------------------------------
I need to send information about your package to the package website, so I tried
to fetch:
https://package.elm-lang.org/register?name=nunntom%2Felm-material-icons&version=1.0.0&commit-hash=ba7dcc73ca09f47aec70b9def788d34d1dad73ac
But it came back as 400 Bad Request
This may mean some online endpoint changed in an unexpected way, so if does not
seem like something on your side is causing this (e.g. firewall) please report
this to https://github.com/elm/compiler/issues with your operating system, Elm
version, the command you ran, the terminal output, and any additional
information that can help others reproduce the error!
It would probably be more useful to stick to at least passing through the error message from the package server.
I'll report this on the package server repo.
from compiler.
from compiler.
Related Issues (20)
- Package opvasger/comparable has been deleted & can no longer be installed HOT 1
- elm-live dies hard when it cant find output files. HOT 8
- What's the state of the Elm repo? HOT 9
- Simplify type system HOT 3
- Clarify type syntax HOT 3
- Docker build fails with rejected dependency HOT 1
- record extended with additional field not accepted as extensible record with record with same fields HOT 1
- Send Bytes through ports HOT 1
- Issue with extensible records and unit type HOT 1
- Permission Denied Error Due to Unset `ELM_HOME` Environment Variable in `Stuff` Module HOT 4
- Error message should be more informative when integer literal is being used as both integer and float HOT 3
- terminal/src/Develop/StaticFiles.hs:91:3: error: Exception when trying to run compile-time code: reactor: changeWorkingDirectory: does not exist HOT 3
- elm publish under zsh not printing error message HOT 1
- Inaccurate information in installation instructions HOT 1
- Let binding cyclic value detection is stronger than top level HOT 1
- Bug?: Confusing behaviour when combining `--optimize` with `--output=/dev/null` HOT 1
- Suboptimal error for mising function arguments HOT 1
- Bad function signature leads to 'EXPECTING DEFINITION' HOT 1
- Pattern parser not hinting at missing comma HOT 1
- - and + behave inconsistently HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compiler.