Issues
, I get a huge amount of methods to define. Even leaving stuff defined as ???
, it’s still a big chunk of lines with very few actual definitions, since I only need to deal with labels.
[error] github4s.GithubResponses$JsonParsingException: Invalid message body: Could not decode JSON: {
[error] "message" : "Not Found",
[error] "documentation_url" : "https://developer.github.com/v3"
[error] }
HttpClient
when writing the extra ones I needed.
Uri.encode
on it before passing it to g4s. It encodes the space, but not the colon. I’ve also confirmed it using curl.
Hey guys! I am currently working with github4s and i have a problem that my program won't terminate. It is not stuck somewhere but after executing the last line of code it just won't stop. I figured out that it does terminate when i don't execute the code that fetches files from github. The methods that relate to github4s that i use are
private val TIMEOUT_DURATION = Duration(1,duration.SECONDS)
private val httpClient: Client[IO] = {
val N_THREADS = 5
val blockingPool = Executors.newFixedThreadPool(N_THREADS)
val blocker = Blocker.liftExecutorService(blockingPool)
implicit val cs: ContextShift[IO] = IO.contextShift(global)
JavaNetClientBuilder[IO](blocker).create
}
private val accessToken = sys.env.get("GITHUB_TOKEN")
private val gh = Github[IO](httpClient, accessToken)
gh.repos.getContents(...)
val response = getContents
.unsafeRunTimed(TIMEOUT_DURATION)
.getOrElse(throw new IOException(s"Unable to fetch content of: $path"))
Does anybody know if there might be some running thread problem here ? Thx.