cost 227 ms
Flutter OperationException(linkException: ResponseFormatException(originalException: FormatException: 輸入意外結束(在字符 1 處)

[英]Flutter OperationException(linkException: ResponseFormatException(originalException: FormatException: Unexpected end of input (at character 1)

以前我使用的是graphql版本 3.1.0,它工作正常,能夠按預期接收請求,但最近我不得不將我的 flutter 版本更新到 2.10.3 和所有其他包,包括 graphql。 現在我正在使用 v.5.1.0,但突然出現此錯誤。 僅將 documentNode 更改為 Query 中的 docu ...

Flutter GraphQL - OperationException(linkException:ResponseFormatException(originalException:FormatException:意外字符(在字符1)

[英]Flutter GraphQL - OperationException(linkException: ResponseFormatException(originalException: FormatException: Unexpected character (at character 1)

使用 graphql_flutter package 的變異方法時出現此錯誤。 嘗試使用以下版本的qraphql_flutter package: 5.0.1-beta.1 5.0.0 4.0.0-beta.5 錯誤: I tried running query using the sam ...

flutter 連接問題中的 graphql-flutter 訂閱

[英]graphql-flutter subscriptions in flutter connectivity issue

我是 flutter 開發的新手,但我在 nodejs 和 graphql 方面有很好的經驗。我正在嘗試使用 graphql-flutter 的訂閱小部件並更新更改。 但未建立連接。 但我可以使用查詢和突變小部件並獲得結果。 graphql-flutter 團隊提供的示例已有 2 年歷史,與htt ...

Graphql 使用一組鍵值對返回類型名稱錯誤

[英]Graphql returning typename error for mutation with set of key-value pairs

我們為 Flutter 應用程序設置了 graphql 服務器。 我們從應用程序到服務器的突變調用之一是返回字段__typename的驗證錯誤,該字段實際上是 graphql 客戶端在后台自動添加的字段(即不受開發人員控制)。 關於如何解決此錯誤的任何想法? 我的設置客戶端:使用graphql_fl ...

graphql_flutter 突變查詢需要返回語句 - 不確定如何添加它

[英]graphql_flutter mutation query expects return statement - not sure how to add it

builder 方法上的變異查詢需要返回語句,我不確定在何處以及如何將其添加到以下代碼中。 我相信變異查詢應該返回操作的通過或失敗。 在過去的幾天里,我一直在努力解決這個問題。 我仍然不知道出了什么問題。 我有這個方法,當用戶填寫一次性代碼時,它會在 onCompleted 回調上調用。 ...

使用 graphql_flutter 連接到 Graphql API 時出錯

[英]Error when connecting to Graphql API using graphql_flutter

我正在嘗試將 graphql_flutter 用於我的 flutter 應用程序,但無法建立連接,並且出現以下錯誤: 我的猜測是錯誤說端口是 36582,但我的服務器在 localhost 的端口 4000 上。 這是主應用程序的代碼 地址也是正確的,最后不包括“/graphql”。 查詢在 pos ...

無法在同一個 HookWidget 中同時使用 useFuture() 和 useValueChanged()

[英]unable to use both useFuture() and useValueChanged() in same HookWidget

我有一個帶有useValueChanged偵聽器的掛鈎小部件,如下所示: 並且changeLayout(..)使用useFuture(..)進行 graphql 突變調用並返回包裝在AsyncSnapshot中的 Future 該值在onTap回調中更改如下: 我的 HookWidget 拋出類型 ...


 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM