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

BridgeServer does not support URL/GET variables

Aberta
#33 19 comentários 0 reações 1 responsável Reivindicada por @Alwinator Ver no GitHub
bug released on @next
Linguagem predominante
Java
Estrelas
75
Forks
30
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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`)

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.