Closed arkgil closed 5 years ago
Oh, and I'm trying to publish this version specifically: https://github.com/beam-telemetry/telemetry/tree/d38820b79d287a41e23f68095e029deb1d7681d9.
Is that all the output you get even with DEBUG=1 rebar3 hex publish
?
And be sure you have rebar3_hex 6.1.0.
@tsloughter Yea, I’m on the 6.1.0. With DEBUG=1 I see rebar3 info about the order of tasks being run, but no other additional info.
Sorry, can’t post the full output now, will do ASAP tomorrow.
Ok, I guess try master, and if it still fails with 500 going to have to go in and print or trace to find what the actual failure is.
Can also temporary give me publish access and I can debug that way.
Hello, The server 500'd with the following error:
# https://hex.pm:80/api/packages/telemetry/releases
Jason.EncodeError: invalid byte 0xE9 in <<74, 111, 115, 233, 32, 86, 97, 108, 105, 109>>
Looking closely at the binary:
iex> :binpp.pprint(<<74, 111, 115, 233, 32, 86, 97, 108, 105, 109>>)
0000 4A 6F 73 E9 20 56 61 6C 69 6D José Valim
It's the maintainers field: https://github.com/beam-telemetry/telemetry/blob/d38820b79d287a41e23f68095e029deb1d7681d9/src/telemetry.app.src#L13
What probably happened is you saved the file in non-UTF8 encoding, or the encoding got lost along the way somehow.
The easiest way to fix this is to drop the maintainers field :) since it's deprecated anyway, see: https://github.com/hexpm/hex/blob/master/CHANGELOG.md#ignoring-maintainers-field
We should handle this gracefully on the server though.
@wojtekmach @tsloughter thanks so much for your help ❤️ I successfully published the package :) On another note, I have problems with publishing the docs now 😅. But I'll create a separate issue for that one. Thanks!
Hi there!
I'm trying to publish a new version of Telemetry package, but I'm getting the following error from
rebar3 hex publish
:The problem probably lies on the side of hex.pm, but maybe there are some debug flags I could set to get more information about why it is failing? Thanks! 😊