Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Cannot create backup #1085

Closed
JiPaix opened this issue Sep 15, 2024 · 1 comment
Closed

[Bug] Cannot create backup #1085

JiPaix opened this issue Sep 15, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@JiPaix
Copy link

JiPaix commented Sep 15, 2024

Device information

  • Suwayomi-Server version: v1.1.1-r1598
  • Server Operating System: Docker
  • Clients: Chrome / Firefox / NodeJS / curl

Steps to reproduce

  1. Start server
  2. Go to http://localhost:4567/settings/backup
  3. Click "Create Backup"

OR

// main.js
const response = await fetch("http://localhost:4567/api/v1/backup/export")
response.status //=> 500

Actual behavior

Both /api/v1/backup/export and /api/v1/backup/export/file are returning an HTTP 500 error code, irrespective of the client used (curl, node, or browser).

Other details

Console output:

2024-09-15 23:01:28 suwayomi-1  | 23:01:28.333 [DefaultDispatcher-worker-7] WARN io.javalin.Javalin -- Uncaught exception
2024-09-15 23:01:28 suwayomi-1  | java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
2024-09-15 23:01:28 suwayomi-1  |       at kotlinx.serialization.internal.PluginGeneratedSerialDescriptor.getElementDescriptor(PluginGeneratedSerialDescriptor.kt:135)
2024-09-15 23:01:28 suwayomi-1  |       at kotlinx.serialization.protobuf.internal.ProtobufTaggedEncoder.encodeSerializableElement(ProtobufTaggedEncoder.kt:139)
2024-09-15 23:01:28 suwayomi-1  |       at suwayomi.tachidesk.manga.impl.backup.proto.models.Backup.write$Self$server(Backup.kt:9)
2024-09-15 23:01:28 suwayomi-1  |       at suwayomi.tachidesk.manga.impl.backup.proto.models.BackupSerializer.serialize(BackupSerializer.kt:5)
2024-09-15 23:01:28 suwayomi-1  |       at suwayomi.tachidesk.manga.impl.backup.proto.models.BackupSerializer.serialize(BackupSerializer.kt:5)
2024-09-15 23:01:28 suwayomi-1  |       at kotlinx.serialization.protobuf.internal.ProtobufEncoder.encodeSerializableValue(ProtobufEncoding.kt:146)
2024-09-15 23:01:28 suwayomi-1  |       at kotlinx.serialization.protobuf.ProtoBuf.encodeToByteArray(ProtoBuf.kt:137)
2024-09-15 23:01:28 suwayomi-1  |       at suwayomi.tachidesk.manga.impl.backup.proto.ProtoBackupExport.createBackup(ProtoBackupExport.kt:192)
2024-09-15 23:01:28 suwayomi-1  |       at suwayomi.tachidesk.manga.controller.BackupController$protobufExportFile$2$1.invokeSuspend(BackupController.kt:114)
2024-09-15 23:01:28 suwayomi-1  |       at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2024-09-15 23:01:28 suwayomi-1  |       at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
2024-09-15 23:01:28 suwayomi-1  |       at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
2024-09-15 23:01:28 suwayomi-1  |       at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)
2024-09-15 23:01:28 suwayomi-1  |       at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
2024-09-15 23:01:28 suwayomi-1  |       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811)
2024-09-15 23:01:28 suwayomi-1  |       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715)
2024-09-15 23:01:28 suwayomi-1  |       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702)
@JiPaix JiPaix added the bug Something isn't working label Sep 15, 2024
@JiPaix
Copy link
Author

JiPaix commented Sep 17, 2024

closed by 654a3cc

@JiPaix JiPaix closed this as completed Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant