### fix: 33 verbessere API-Antwort-Handling und Versionsmarker
- **NennungRemoteRepository:** Handling für leeren JSON-Body angepasst. - **MailController:** JSON-Antwort mit Erfolgsstatus und ID hinzugefügt. - **WebMainScreen:** Versionsmarker auf `v2026-04-23.33 - JSON RESPONSE FIX` aktualisiert.
This commit is contained in:
+2
-2
@@ -101,8 +101,8 @@ class NennungRemoteRepository(private val client: HttpClient) {
|
||||
}
|
||||
|
||||
println("Antwort erhalten: ${response.status.value}")
|
||||
val responseText = try { response.body<String>() } catch (e: Exception) { "Kein Body" }
|
||||
println("Antwort Body: $responseText")
|
||||
val responseText = try { response.body<String>() } catch (e: Exception) { "" }
|
||||
println("Antwort Body: '$responseText'")
|
||||
|
||||
if (response.status.isSuccess()) {
|
||||
Result.success(Unit)
|
||||
|
||||
+1
-1
@@ -126,7 +126,7 @@ fun MainAppContent() {
|
||||
// Dezentraler Versions-Marker in der unteren rechten Ecke
|
||||
Box(modifier = Modifier.fillMaxSize().padding(8.dp), contentAlignment = Alignment.BottomEnd) {
|
||||
Text(
|
||||
text = "v2026-04-23.32 - PROXY DEBUG",
|
||||
text = "v2026-04-23.33 - JSON RESPONSE FIX",
|
||||
style = MaterialTheme.typography.labelSmall,
|
||||
color = Color.LightGray.copy(alpha = 0.5f)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user