vyfor
vyfor
KKord
Created by vyfor on 8/17/2024 in #help
[Kotlin/Native] Slow connection issues
goddamn
31 replies
KKord
Created by vyfor on 8/17/2024 in #help
[Kotlin/Native] Slow connection issues
that aside, my bot also does http requests here and there, and uses supabase-kt to communicate with the database with no connection issues whatsoever
31 replies
KKord
Created by vyfor on 8/17/2024 in #help
[Kotlin/Native] Slow connection issues
i didnt notice anything strange, only the first requests seem to be a little slow due to warmup
31 replies
KKord
Created by vyfor on 8/17/2024 in #help
[Kotlin/Native] Slow connection issues
how slow are we talking lmao
31 replies
KKord
Created by vyfor on 8/17/2024 in #help
[Kotlin/Native] Slow connection issues
i'll go ahead and test ktor itself
31 replies
KKord
Created by vyfor on 8/17/2024 in #help
[Kotlin/Native] Slow connection issues
hmm
31 replies
KKord
Created by vyfor on 8/17/2024 in #help
[Kotlin/Native] Slow connection issues
did i just need to install it as a plugin? if so, here are the logs:
[] [DISCOVERED]:[BUCKET]:Bucket discovered for 3df15bae86f6647dd4dfcbd5c6949480
TRACE: [] [Http/Ktor: Curl] <- POST https://discord.com/api/v10/channels/1191449585458094180/messages 200 OK - 10.772144703s
DEBUG: [[R]:[KTOR]:[ExclusionRequestRateLimiter]] [RESPONSE]:200:POST:https://discord.com/api/v10/channels/1191449585458094180/messages body:{"content":"Calculating...", ...}
DEBUG: [[R]:[KTOR]:[ExclusionRequestRateLimiter]] [REQUEST]:PATCH:/channels/{channel.id}/messages/{message.id} params:[{channel.id}=1191449585458094180,{message.id}=1274360378347884575] body:{"content":"Gateway: 39.631ms\nREST: 10.773614199s"}
TRACE: [] [Http/Ktor: Curl] <- PATCH https://discord.com/api/v10/channels/1191449585458094180/messages/1274360378347884575
TRACE: [] Received raw frame: Frame BINARY (fin=true, buffer len = 91)
TRACE: [] Gateway <<< {"t":"MESSAGE_UPDATE","s":4,"op":0,"d":{"content":"y.ping", ...}
TRACE: [] [DISCOVERED]:[BUCKET]:Bucket discovered for 3df15bae86f6647dd4dfcbd5c6949480
TRACE: [] [Http/Ktor: Curl] <- PATCH https://discord.com/api/v10/channels/1191449585458094180/messages/1274360378347884575 200 OK - 10.153825131s
DEBUG: [[R]:[KTOR]:[ExclusionRequestRateLimiter]] [RESPONSE]:200:PATCH:https://discord.com/api/v10/channels/1191449585458094180/messages/1274360378347884575 body:{"content":"Gateway: 39.631ms\nREST: 10.773614199s", ...}
[] [DISCOVERED]:[BUCKET]:Bucket discovered for 3df15bae86f6647dd4dfcbd5c6949480
TRACE: [] [Http/Ktor: Curl] <- POST https://discord.com/api/v10/channels/1191449585458094180/messages 200 OK - 10.772144703s
DEBUG: [[R]:[KTOR]:[ExclusionRequestRateLimiter]] [RESPONSE]:200:POST:https://discord.com/api/v10/channels/1191449585458094180/messages body:{"content":"Calculating...", ...}
DEBUG: [[R]:[KTOR]:[ExclusionRequestRateLimiter]] [REQUEST]:PATCH:/channels/{channel.id}/messages/{message.id} params:[{channel.id}=1191449585458094180,{message.id}=1274360378347884575] body:{"content":"Gateway: 39.631ms\nREST: 10.773614199s"}
TRACE: [] [Http/Ktor: Curl] <- PATCH https://discord.com/api/v10/channels/1191449585458094180/messages/1274360378347884575
TRACE: [] Received raw frame: Frame BINARY (fin=true, buffer len = 91)
TRACE: [] Gateway <<< {"t":"MESSAGE_UPDATE","s":4,"op":0,"d":{"content":"y.ping", ...}
TRACE: [] [DISCOVERED]:[BUCKET]:Bucket discovered for 3df15bae86f6647dd4dfcbd5c6949480
TRACE: [] [Http/Ktor: Curl] <- PATCH https://discord.com/api/v10/channels/1191449585458094180/messages/1274360378347884575 200 OK - 10.153825131s
DEBUG: [[R]:[KTOR]:[ExclusionRequestRateLimiter]] [RESPONSE]:200:PATCH:https://discord.com/api/v10/channels/1191449585458094180/messages/1274360378347884575 body:{"content":"Gateway: 39.631ms\nREST: 10.773614199s", ...}
31 replies
KKord
Created by vyfor on 8/17/2024 in #help
[Kotlin/Native] Slow connection issues
how would i do that?
31 replies
KKord
Created by vyfor on 8/17/2024 in #help
[Kotlin/Native] Slow connection issues
No description
31 replies
KKord
Created by vyfor on 8/17/2024 in #help
[Kotlin/Native] Slow connection issues
No description
31 replies
KKord
Created by vyfor on 8/17/2024 in #help
[Kotlin/Native] Slow connection issues
31 replies
KKord
Created by vyfor on 8/17/2024 in #help
[Kotlin/Native] Slow connection issues
Kord won't let me use the CIO engine either: TLS sessions are not supported on Native platform.
31 replies
KKord
Created by vyfor on 8/10/2024 in #help
[Kotlin/Native] Linking stage fails
alright
84 replies
KKord
Created by vyfor on 8/10/2024 in #help
[Kotlin/Native] Linking stage fails
got it, do you see any other issues with the dockerfile?
84 replies
KKord
Created by vyfor on 8/10/2024 in #help
[Kotlin/Native] Linking stage fails
i know that some of them aren't really necessary, but i've been struggling to get this app working for days. i got frustrated and ended up copying things from all kinds of gists until it finally worked lol
84 replies
KKord
Created by vyfor on 8/10/2024 in #help
[Kotlin/Native] Linking stage fails
hmm
84 replies
KKord
Created by vyfor on 8/10/2024 in #help
[Kotlin/Native] Linking stage fails
i just copied the gh action
84 replies
KKord
Created by vyfor on 8/10/2024 in #help
[Kotlin/Native] Linking stage fails
FROM gradle:8.9.0-jdk11 as builder
WORKDIR /app
COPY . .

RUN apt-get update && apt-get install -y \
build-essential \
nghttp2 \
libnghttp2-dev \
libssl-dev \
make \
g++ \
curl \
libpsl-dev \
libcurl4-openssl-dev \
libssl3 \
ca-certificates \
psl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN curl -o curl.tgz https://curl.se/download/curl-8.9.1.tar.gz
RUN tar xzvf curl.tgz && \
cd curl-*/ && \
./configure --prefix=/usr/local --with-openssl --enable-websockets --with-nghttp2 && \
make -j4 && make install && ldconfig

RUN cp -r /usr/local/lib/libcurl* /usr/lib/ && \
cp -r /usr/local/lib/libcurl* /usr/lib64 && \
cp -r /usr/local/include/curl/ /usr/include && \
cp -r /usr/local/lib/libcurl.a /usr/lib/libcurl.a && \
cp -r /usr/local/lib/libcurl.la /usr/lib/libcurl.la && \
cp -r /usr/local/lib/libcurl.so /usr/lib/libcurl.so && \
cp -r /usr/local/lib/libcurl.so.4 /usr/lib/libcurl.so.4 && \
cp -r /usr/local/lib/libcurl.so.4.8.0 /usr/lib/libcurl.so.4.8.0
ENV LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH

RUN ./gradlew linkReleaseExecutableLinuxX64
RUN mv ./build/bin/linuxX64/releaseExecutable/Yu.kexe ./Yu && \
chmod +x ./Yu

CMD ["./Yu"]
FROM gradle:8.9.0-jdk11 as builder
WORKDIR /app
COPY . .

RUN apt-get update && apt-get install -y \
build-essential \
nghttp2 \
libnghttp2-dev \
libssl-dev \
make \
g++ \
curl \
libpsl-dev \
libcurl4-openssl-dev \
libssl3 \
ca-certificates \
psl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN curl -o curl.tgz https://curl.se/download/curl-8.9.1.tar.gz
RUN tar xzvf curl.tgz && \
cd curl-*/ && \
./configure --prefix=/usr/local --with-openssl --enable-websockets --with-nghttp2 && \
make -j4 && make install && ldconfig

RUN cp -r /usr/local/lib/libcurl* /usr/lib/ && \
cp -r /usr/local/lib/libcurl* /usr/lib64 && \
cp -r /usr/local/include/curl/ /usr/include && \
cp -r /usr/local/lib/libcurl.a /usr/lib/libcurl.a && \
cp -r /usr/local/lib/libcurl.la /usr/lib/libcurl.la && \
cp -r /usr/local/lib/libcurl.so /usr/lib/libcurl.so && \
cp -r /usr/local/lib/libcurl.so.4 /usr/lib/libcurl.so.4 && \
cp -r /usr/local/lib/libcurl.so.4.8.0 /usr/lib/libcurl.so.4.8.0
ENV LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:$LD_LIBRARY_PATH

RUN ./gradlew linkReleaseExecutableLinuxX64
RUN mv ./build/bin/linuxX64/releaseExecutable/Yu.kexe ./Yu && \
chmod +x ./Yu

CMD ["./Yu"]
84 replies
KKord
Created by vyfor on 8/10/2024 in #help
[Kotlin/Native] Linking stage fails
that's not how i'm doing it
84 replies
KKord
Created by vyfor on 8/10/2024 in #help
[Kotlin/Native] Linking stage fails
though i'd appreciate it if kordx.emoji (feature/mpp) could be republished
84 replies