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

BridgeServer does not support URL/GET variables

未關閉
#33 19 則留言 0 個 reaction 已指派 1 人 已被 @Alwinator 認領 在 GitHub 檢視
bug released on @next
主要語言
Java
星號
75
分支
30
PR 合併指標
30 天內沒有已合併 PR

描述

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

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。