Skip to content
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

BencodeReadException: Unexpected character 'd' when reading bencode-length of string #27

Open
Velrok opened this issue Jul 27, 2020 · 0 comments

Comments

@Velrok
Copy link

Velrok commented Jul 27, 2020

Hi. Thanks for your work on inlein 👍

I'm using inlein for a small kube cron job I want to run every 5 min.

However running inlein --deps /app/job.clj in a docker context keeps throwing this exception.

[INFO] Retrieving org/clojure/spec.alpha/0.2.176/spec.alpha-0.2.176.jar (590k) from https://repo1.maven.org/maven2/
Exception in thread "main" com.hypirion.bencode.BencodeReadException: Unexpected character 'd' when reading bencode-length of string
	at com.hypirion.bencode.BencodeReader.readLen(BencodeReader.java:124)
	at com.hypirion.bencode.BencodeReader.readString(BencodeReader.java:139)
	at com.hypirion.bencode.BencodeReader.readDict(BencodeReader.java:204)
	at inlein.client.ServerConnection.readNonlog(ServerConnection.java:118)
	at inlein.client.ServerConnection.sendRequest(ServerConnection.java:106)
	at inlein.client.tasks.Deps.run(Deps.java:27)
	at inlein.client.Main.main(Main.java:32)
The command '/bin/sh -c inlein --deps /app/job.clj' returned a non-zero code: 1

Dockerfile:

FROM openjdk:11.0.8-jdk
RUN curl -L https://github.com/hypirion/inlein/releases/download/0.2.0/inlein > /usr/bin/inlein && chmod +x /usr/bin/inlein
WORKDIR /app

ADD *.clj .
RUN inlein --deps /app/job.clj
ENTRYPOINT inlein /app/job.clj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant