openimsdk / open-im-sdk-web-wasm

JS SDK for OpenIM Web use by Webassembly of go
https://openim.io
Apache License 2.0
35 stars 49 forks source link

[BUG] event: 'Getconversationlistsplit ', errCode: 100, errMsg: 'runtime error: invalid memory address or nil pointer dereference' #119

Closed OrrinHatch closed 3 months ago

OrrinHatch commented 3 months ago

OpenIM Server Version

3.8.0

Operating System and CPU Architecture

macOS (ARM)

Deployment Method

Source Code Deployment

Bug Description and Steps to Reproduce

try {
      const { data } = await IMSDK.getConversationListSplit({
        offset: isOffset ? get().conversationList.length : 0,
        count: CONVERSATION_SPLIT_COUNT,
      });
      tmpConversationList = data;
} catch (error) {
  //  获取会话列表失败! 
    // {operationID: '739a6c4c-28b7-4a32-bf80-1ee4b55ec9d7', event: 'Getconversationlistsplit ', errCode: 100, errMsg: 'runtime error: invalid memory address or nil pointer dereference'}
      feedbackToast({ error, msg: intl.formatMessage({ id: 'toast.getConversationFailed' }) });
      return true;
}

Screenshots Link

No response

Bloomingg commented 3 months ago

https://github.com/openimsdk/open-im-sdk-web-wasm/blob/main/assets/wasm_exec.js#L22 The SDK core logs will be printed here. can you collect more logs?

OrrinHatch commented 3 months ago

Problem solved