Open Ki-er opened 2 years ago
It works for this input waifu_-.
pc
and null for type
I think it's more like the user has to be registered here: https://r6.tracker.network/
Doing the inputs above I get
It works in my local development of nodejs, it may work for yours due to the dev.docker but im not sure why it doesnt work for the deployed docker
No worries, fix on the way 😬
Still getting undefined
Huh... how did you test it? i.e. How did you start docker image?
Here's what I tested:
docker compose up
This one worked normally.
2nd option:
docker build .
then:
docker run -d \
--name=clarence \
-p 6002:6002 \
-e DISCORD_TOKEN='INSERT DISCORD TOKEN' \
-e MONGOOSE='INSERT MONGODB URL' \
-e PREFIX='-' \
--restart unless-stopped \
8b020cbc738b (image id)
This also worked normally.
Have you tried rebuilding the image?
I ran the docker command seen in the README pulling the latest image. Ill try setting it up using the docker compose and giving it ago
Weird... I just tried the one in README
it still worked I guess we need some third person to verify.
@CrimsonTome, we request your assistance 😆
Weird... I just tried the one in
README
it still worked I guess we need some third person to verify.
What inputs did you try. ill try the same ones
Similar to the one in the docs waifu_-.
, you can try the bot here: https://discord.gg/BfSVskDN
@CrimsonTome, we request your assistance 😆
If you don't mind waiting til this evening/tomorrow as I'm out most of today
It's looking like it doesn't want to work when being ran in Docker in a VM
correction: doesnt like being ran in a VM at all, node or docker os: Ubuntu 22.04 apologies I have no idea how this would be resolved
try to install curl
in the docker image may can get some help
https://github.com/hmes98318/r6s-stats-api/issues/1#issuecomment-1280021572
Mhm... this might be actually it, because curl
doesn't exist on my WSL2 Ubuntu 20.04
...
I can't remember if dockerfile
can have 2 images i.e. two FROM
, but the second option is to have a multi-stage dockerfile
.
edit, forgot to link
Apparently theres multistage
edit: You said that 😆
gg, I'll try to do it soonish.
Mhm... this might be actually it, because
curl
doesn't exist on myWSL2 Ubuntu 20.04
...I can't remember if
dockerfile
can have 2 images i.e. twoFROM
, but the second option is to have a multi-stagedockerfile
.edit, forgot to link
Add RUN apt-get update -y && apt-get install --no-install-recommends -y curl
to your Dockerfile
Mhm... this might be actually it, because
curl
doesn't exist on myWSL2 Ubuntu 20.04
... I can't remember ifdockerfile
can have 2 images i.e. twoFROM
, but the second option is to have a multi-stagedockerfile
. edit, forgot to linkAdd
RUN apt-get update -y && apt-get install --no-install-recommends -y curl
to your Dockerfile
This did not fix it
This did not fix it
Where is not solved? I did not understand. 😕
Doing the inputs above I get
It outputs the above and in console, nothing appears when doing console.log(profile)
It outputs the above and in console, nothing appears when doing console.log(profile)
umm... Using same Dockerfile to build image is available.
FROM node:16.17.1
WORKDIR /usr/clarence/
COPY --chown=node:node . .
RUN npm --verbose install
RUN apt-get update -y && apt-get install --no-install-recommends -y curl
CMD ["node", "src/index.js"]
this is not a docker issue, this is most likely an issue with it being ran in a VM
Hmm... 👀
Just use Axios
instead of exec
in r6stats
... this solves basically everything 😬
If curl
is actually the culprit causing this problem
Ref: https://github.com/hmes98318/r6s-stats-api/issues/1#issuecomment-1234520102
R6 stats api doesnt work within deployed docker
More research needs to be carried out for this