Hey everyone, out of nowhere I started getting the...
# javascript
f
Hey everyone, out of nowhere I started getting the following error today:
Copy code
Could not determine the dependencies of task ':kotlinNodeJsSetup'.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
> Could not resolve all files for configuration ':detachedConfiguration3'.

   > Could not resolve org.nodejs:node:14.17.0.
     Required by:
         project :
      > Could not resolve org.nodejs:node:14.17.0.
         > Could not get resource '<https://kotlin.bintray.com/kotlinx/org/nodejs/node/14.17.0/node-14.17.0.pom>'.
            > Could not GET '<https://kotlin.bintray.com/kotlinx/org/nodejs/node/14.17.0/node-14.17.0.pom>'. Received status code 502 from server: Bad Gateway
Anyone know what's happening?
I saw someone created a post on the forum related to this but then they deleted it so I couldn't see if there were any answers
m
Jcenter (bintray) isn't the most reliable these days so this could happen
Upvote https://github.com/Kotlin/kotlinx-nodejs/issues/16 to move this to mavenCentral
Even though technically, bintray seems to be green at that time: https://status.bintray.com/
f
Thanks for getting back to me @mbonnin ๐Ÿ‘ I'm also thinking this might be a Github Actions issue as I'm consistently getting that error there. It's always with the same library, but it might be that's the first library the project tries to fetch.
Actually, scratch that, I checked with the URL on my machine and I'm getting a 502 here as well
So must be a JCenter issue ๐Ÿ˜•
m
Same here FWIW
๐Ÿ˜ž 1
f
@mbonnin do you know where I could report the issue to Bintray?
m
Not really. Maybe this: https://jfrog.com/support/
But doesn't look like there's an easy way to file a report
org.nodejs:node
I might have mislead you actually. https://github.com/Kotlin/kotlinx-nodejs/issues/16 is for
org.jetbrains.kotlinx:kotlinx-nodejs
actually so maybe it's something else
The weird thing is that I have a project that uses
kotlinNodeJsSetup
and this works well
(using Kotlin 1.6.0)
My
kotlinNodeJsSetup
seems to be downloading from nodejs.org directly (not from bintray)
Downloading https://nodejs.org/dist/v14.17.0/node-v14.17.0-darwin-x64.tar.gz to /Users/mbonnin/.gradle/.tmp/gradle_download2935121759895982965bin
f
Interesting, I'm still on Kotlin 1.5.31, on this project as we usually don't update to newer versions right away. I doubt updating the Kotlin version would have an impact on how dependencies are fetched though ๐Ÿค” (although it might be, not sure how that all works under the hood and it might be the Kotlin Plugin doing something there)
I have sent a "report" to JFrog now via the form on the link you shared, thanks @mbonnin ๐Ÿ‘
Seems like updating to Kotlin 1.6.0 worked ๐Ÿ™‚
Actually seems like this is failing again...very weird ๐Ÿ˜•
Update for anyone that ends up here with the same issue: In the end I made it work by updating to Kotlin 1.6.0 and removing
maven("<https://kotlin.bintray.com/kotlinx/>")
from the
repositories
clause on
build.gradle.kts