Skip to content

[T5] Problema in callRestPut #49

@HeineCantor

Description

@HeineCantor

Describe the bug
Il metodo callRestPut nella classe BaseService in T5 non sembra funzionare correttamente. In tutte le chiamate PUT attualmente utilizzate (per ora esclusivamente al T4) viene riportato il seguente errore:

2024-11-08 09:05:40 [http-nio-8080-exec-2] ERROR com.g2.Game.GameController - [SERVICE MANAGER]  Errore HandleRequest: T4Exception: [EndRound]: [CallRestPut] Chiamata PUT fallita con stato: org.springframework.web.client.HttpClientErrorException$UnsupportedMediaType: 415 Unsupported Media Type: [no body]

Il problema è probabilmente relativo al fatto che la costruzione del payload della richiesta prevede un Content-Type del tipo application/x-www-form-urlencoded, mentre la maggior parte delle API utilizzate richiedono Content-Type del tipo application/json.

To Reproduce
Steps to reproduce the behavior:

  1. Effettuare il Submit di una qualsiasi sfida
  2. Andare a vedere nel log gli errori relativi alle chiamate PUT

Desktop:

  • OS: Linux
  • Browser: Firefox

Metadata

Metadata

Assignees

No one assigned

    Labels

    T5task T5-G2bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions