microsoft / react-native-code-push

React Native module for CodePush
http://appcenter.ms
Other
8.93k stars 1.46k forks source link

CodePush.checkForUpdate().then.catch **** error = {} #2738

Closed Emperorywh closed 1 week ago

Emperorywh commented 3 weeks ago

Thanks so much for filing an issue or feature request! Please fill out the following (wherever relevant):

Steps to Reproduce

  1. CodePush .checkForUpdate().then.catch(error => console.log(error))
  2. console =>>>>> {}

Expected Behavior

What you expected to happen? Check for updates and get the latest code

Actual Behavior

What actually happens? error:{}

  STACK TRACE AND/OR SCREENSHOTS

image

Reproducible Demo

` import { Button, Toast } from "@ant-design/react-native"; import { View } from "react-native"; import CodePush from 'react-native-code-push';

/**

export default Mine; `

Environment

(The more info the faster we will be able to address it!)

image

My codepush was able to upload, check for updates and download normally before, so there is no doubt that there is something wrong with my configuration

### Tasks
### Tasks
chengxiaofeng123 commented 3 weeks ago

The device cannot detect the update and must scientifically go online to receive it

IlyaBausovAkvelon commented 2 weeks ago

Hi @Emperorywh, Thank you for reporting this issue. Could you please clarify when this issue is started to happen? Did this appear after react-native update? Does the device is being online when the update is happening?

Emperorywh commented 2 weeks ago

Hi @Emperorywh, Thank you for reporting this issue. Could you please clarify when this issue is started to happen? Did this appear after react-native update? Does the device is being online when the update is happening?

I discovered this problem on August 16, 2024. The react-native version 0.71.3 also has this problem. The device is connected to the Internet when checking for updates. I turned on VPN and the update check worked properly.

IlyaBausovAkvelon commented 2 weeks ago

@Emperorywh so the issue was in internet connection? Do you experience the issue now?

DmitriyKirakosyan commented 1 week ago

Closing due to inactivity.