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

Type error when getting a dashboard

Aperta
#920 13 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

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

Direzione di ricerca

Inizia riproducendo dashboards_api.get_dashboard(dashboard.get("id")) con una dashboard il cui valore x del layout del widget è un float. Traccia la validazione della risposta della dashboard v1 per received_data.widgets[15].layout.x e verifica che il recupero abbia esito positivo preservando il valore float.

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

Descrizione

kind/bug stale

Describe the bug
When trying to retrieve a dashboard by using the call dashboards_api.get_dashboard(dashboard.get("id")), I get an error saying datadog_api_client.v1.exceptions.ApiTypeError: Invalid type for variable 'x'. Required value type is int and passed type was float at ['received_data']['widgets'][15]['layout']['x']

To Reproduce
Steps to reproduce the behavior:

  1. Have a dashboard that has and X value that is a float and not an int
  2. Call get_dashboard for said dashboard
  3. See error

Expected behavior
The dashboard is returned with the float value for X

Environment and Versions (please complete the following information):

  • Windows 10
  • Python 3.10
  • api client v1
Lingua principale
Python
Stelle
166
Fork
55
Merge medio
2g 17h
PR unite (30g)
73

Guida per i contributori

Apri la guida per i contributori

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 DataDog/datadog-api-client-python

Tutte le issue di DataDog/datadog-api-client-python

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.