Alwinator / Alwinator/react-native-http-bridge-refurbished

BridgeServer does not support URL/GET variables

Aperta
#33 19 commenti 0 reazioni 1 assegnatario Rivendicata da @Alwinator Vedi su GitHub
bug released on @next
Lingua principale
Java
Stelle
75
Fork
30
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Basically I am trying to workaround issue #32

I am appending the fields as URL params:

```
const body = {
id: escape(song.id),
title: song.title,
thumbnailUrl: song.thumbnailUrl,
duration: song.duration,
};
const appendToUrl = new URLSearchParams(body).toString();
const result = await fetch(
`http://${get().ipAddress}/songs?${appendToUrl}`,
{
method: "POST",
body: JSON.stringify(body),
},
);
```

however it seems that the server stopped responding anymore. I encountered this problem when the url path is wrong (i.e. `/songsWrongPath` instead of `/songs`)

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.