This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
очень важная фигня |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
java.lang.NullPointerException | |
at me.centralhardware.znatoki.telegram.statistic.MainKt$main$4$invokeSuspend$$inlined$filter$2$2.emit(Emitters.kt:51) | |
at kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke(SafeCollector.kt:11) | |
at kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke(SafeCollector.kt:11) | |
at kotlinx.coroutines.flow.internal.SafeCollector.emit(SafeCollector.kt:113) | |
at kotlinx.coroutines.flow.internal.SafeCollector.emit(SafeCollector.kt:82) | |
at dev.inmo.micro_utils.coroutines.AccumulatorFlow.collectSafely(AccumulatorFlow.kt:74) | |
at dev.inmo.micro_utils.coroutines.AccumulatorFlow$collectSafely$1.invokeSuspend(AccumulatorFlow.kt) | |
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith$$$capture(ContinuationImpl.kt:33) | |
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> Task :compileKotlin FAILED | |
e: org.jetbrains.kotlin.backend.common.BackendException: Backend Internal error: Exception during IR lowering | |
File being compiled: /Users/alex/IdeaProjects/znatoki_statistic/src/main/kotlin/me/centralhardware/znatoki/telegram/statistic/service/ReportService.kt | |
The root cause java.lang.RuntimeException was thrown at: org.jetbrains.kotlin.backend.jvm.codegen.FunctionCodegen.generate(FunctionCodegen.kt:47) | |
at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException(CodegenUtil.kt:253) | |
at org.jetbrains.kotlin.backend.common.CodegenUtil.reportBackendException$default(CodegenUtil.kt:236) | |
at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invokeSequential(performByIrFile.kt:65) | |
at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:52) | |
at org.jetbrains.kotlin.backend.common.phaser.PerformByIrFilePhase.invoke(performByIrFile.kt:38) | |
at org.jetbrains.kotlin.backend.common.phaser.NamedCompilerPhase.phaseBody(CompilerPh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10-24 10:05:57.902 [WARNING] studyRussianBot - | |
dev.inmo.tgbotapi.bot.exceptions.CommonBotException: Something went wrong | |
at dev.inmo.tgbotapi.bot.ktor.base.DefaultKtorRequestsExecutor.execute(DefaultKtorRequestsExecutor.kt:99) | |
at dev.inmo.tgbotapi.bot.ktor.base.DefaultKtorRequestsExecutor$execute$1.invokeSuspend(DefaultKtorRequestsExecutor.kt) | |
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) | |
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101) | |
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:113) | |
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:89) | |
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:589) | |
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:823) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bot-common:main: Could not find dev.inmo:tgbotapi:18.2.2-branch_18.2.2-build2460. | |
Searched in the following locations: | |
- https://repo.maven.apache.org/maven2/dev/inmo/tgbotapi/18.2.2-branch_18.2.2-build2460/tgbotapi-18.2.2-branch_18.2.2-build2460.pom | |
- https://nexus.inmo.dev/dev/inmo/tgbotapi/18.2.2-branch_18.2.2-build2460/tgbotapi-18.2.2-branch_18.2.2-build2460.pom | |
Required by: | |
project : | |
Possible solution: | |
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Проверяем, что URL был передан | |
if [ -z "$1" ]; then | |
echo "Использование: $0 <URL>" | |
exit 1 | |
fi | |
# URL страницы с видео | |
PAGE_URL="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function otr_init() | |
otr.log("example.lua starting; writing to /tmp/lua.out") | |
end | |
function otr_hook(topic, _type, data) | |
otr.log("curl -X POST -s 'http://10.168.0.77:7890/location?latitude=" .. data['lat'] .. "&longitude=" .. data['lon'] .. "&timezone=" .. data['tzname'] .. "&country=" .. data['cc'] .. "&userId=428985392" .. "'") | |
os.execute("curl -X POST -s 'http://10.168.0.77:7890/location?latitude=" .. data['lat'] .. "&longitude=" .. data['lon'] .. "&timezone=" .. data['tzname'] .. "&country=" .. data['cc'] .. "&userId=428985392" .. "'") | |
end | |
function otr_exit() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.centralhardware.znatoki.telegram.statistic.telegram | |
import dev.inmo.tgbotapi.bot.ktor.KtorCallFactory | |
import dev.inmo.tgbotapi.bot.ktor.KtorPipelineStepsHolder | |
import dev.inmo.tgbotapi.requests.GetUpdates | |
import dev.inmo.tgbotapi.requests.abstracts.Request | |
import io.ktor.client.plugins.HttpRequestTimeoutException | |
import kotlinx.coroutines.flow.MutableStateFlow | |
class HealthCheckKtorPipelineStepsHolder : KtorPipelineStepsHolder { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package me.centralhardware.znatoki.telegram.statistic.telegram | |
import dev.inmo.tgbotapi.bot.ktor.KtorCallFactory | |
import dev.inmo.tgbotapi.bot.ktor.KtorPipelineStepsHolder | |
import dev.inmo.tgbotapi.requests.GetUpdates | |
import dev.inmo.tgbotapi.requests.abstracts.Request | |
import io.ktor.client.plugins.HttpRequestTimeoutException | |
class KtorPipelineStepsHolder : KtorPipelineStepsHolder { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import logging | |
import textwrap | |
import google.generativeai as genai | |
from google.generativeai.types import HarmCategory, HarmBlockThreshold | |
from config import config | |
from TelegramUtils import client2 | |
genai.configure(api_key=config.gemini_api_key) |
NewerOlder