Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

ItemItemsItemPermanentDeleteRequestBuilderInternal.Post missing content body/content-type headers

Aperta
#980 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go
Ambito
api

Direzione di ricerca

Inizia con ItemItemsItemPermanentDeleteRequestBuilderInternal.Post e riproduci il problema utilizzando la chiamata documentata di DriveItem PermanentDelete. Traccia il modo in cui la richiesta gestisce il corpo del contenuto e Content-Type, quindi verifica che la chiamata venga completata senza errori relativi all’header o al payload vuoto ed elimini definitivamente l’elemento.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

status:waiting-for-triage type:bug
Describe the bug

when you send a request using, ItemItemsItemPermanentDeleteRequestBuilderInternal.Post, it fails with error: Write requests (excluding DELETE) must contain the Content-Type header declaration.

if you include the header you get the following:
Empty Payload. JSON content expected.

Expected behavior

when ItemItemsItemPermanentDeleteRequestBuilderInternal.Post is called the item is deleted permanently.

How to reproduce

you can use the example from the docs:

// Dependencies
import (
"context"
msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go"
//other-imports
)

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.Drives().ByDriveId("drive-id").Items().ByDriveItemId("driveItem-id").PermanentDelete().Post(context.Background(), nil)

SDK Version

1.96.0

Latest version known to work for scenario above?

idk

Known Workarounds

No response

Debug output
Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_
Lingua principale
Go
Stelle
332
Fork
43
Merge medio
1h 17m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di microsoftgraph/msgraph-sdk-go

Tutte le issue di microsoftgraph/msgraph-sdk-go

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.