compas-dev / compas-dev/compas_cloud

compas_cloud does not allow function returning nothing, or non-iterable values

Aperta
#9 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
6
Fork
2
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

because one cannot json.dumps such values with the current encoders...
hacky solution provided below:

**in server.py:**
consider adding line 180
![image](https://user-images.githubusercontent.com/9421670/97201071-4db11300-17b2-11eb-8a7f-3b00f293591c.png)

**in proxy.py**
consider revising final line
![image](https://user-images.githubusercontent.com/9421670/97201121-5e618900-17b2-11eb-9c29-aa8ece4bc96a.png)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Start with server.py around line 180 and the final line of proxy.py, which the issue identifies as the relevant locations. Trace how function results are encoded and forwarded, then verify that functions returning nothing or non-iterable values can complete without the current JSON-encoding failure.

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

Valutazione

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

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.