nickwelp

nickwelp

Member Since 7 years ago

Austin, TX

Experience Points
0
follower
Lessons Completed
0
follow
Lessons Completed
3
stars
Best Reply Awards
5
repos

21 contributions in the last year

Pinned
⚡ KillScale -- 40k Dashboard for anticipating results
⚡ Desperate Racer - Racing and AI Video Game
⚡ Depserate Racer Public
⚡ Planet Fox for iOS
Activity
Nov
25
5 days ago
Activity icon
issue

nickwelp issue comment facebook/react-native

nickwelp
nickwelp

react native 0.64.2 (iOS) fetch Network request failed

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

using fetch to request network

React Native version:

0.64.2

Steps To Reproduce

init a new react native project then in the useEffect i use bellow codes: React.useEffect(() => { fetch({ url: 'https://reqres.in/api/users?page=2', method: 'GET', headers: { Accept: 'application/json', 'Content-Type': 'application/json' } }).then(response => { console.log(response) }).catch(e => console.log(e)) }, []);

Expected Results

Snack, code example, screenshot, or link to a repository:

nickwelp
nickwelp

I've moved on to replacing fetch react-native-fetch-blob which has a drop in replacement for Fetch

Nov
24
6 days ago
Activity icon
issue

nickwelp issue comment facebook/react-native

nickwelp
nickwelp

[0.66.1] Fetch doesn't return or throw an error

Description

The fetch() method simply doesn't go through. The await method will wait forever (or just super long).

Version

0.66.1

Output of react-native info

System: OS: macOS 11.6 CPU: (24) x64 Intel(R) Xeon(R) CPU E5-2697 v2 @2.70GHz Memory: 68.76 MB / 12.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.4.2 - /usr/local/bin/node Yarn: Not Found npm: 8.1.0 - /usr/local/bin/npm Watchman: 2021.06.07.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: API Levels: 29, 30 Build Tools: 29.0.2, 30.0.2, 30.0.3, 31.0.0, 31.0.0 System Images: android-30 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7678000 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 11.0.10 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.1 => 0.66.1 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Mobx is used in the project and the presenter is fetching a remote json file which is accessible. The fetch() method is defined but somehow, nothing is returned from it so the view is never updated. I tried adding console.log() around it but the line under it is never called. Strangely, it worked in another environment but after reinstalling everything and it doesn't work again. However, it never worked on this environment.

The remote url is https so I don't think it is related to the usesCleartextTraffic. This issue occurs on both Android and iOS.

Snack, code example, screenshot, or link to a repository

const res = await fetch('https://google.com');
const text = await res.text();
nickwelp
nickwelp

after taking apart the whatwg-fetch repo that react-native uses, I've been trying out XMLHttpRequest and can see that is not working as well, which leads to Fetch failing. XMLHttpRequest never calls 'onload' or 'onreadystatechange' even after a server has responded.

Activity icon
issue

nickwelp issue comment facebook/react-native

nickwelp
nickwelp

react native 0.64.2 (iOS) fetch Network request failed

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

using fetch to request network

React Native version:

0.64.2

Steps To Reproduce

init a new react native project then in the useEffect i use bellow codes: React.useEffect(() => { fetch({ url: 'https://reqres.in/api/users?page=2', method: 'GET', headers: { Accept: 'application/json', 'Content-Type': 'application/json' } }).then(response => { console.log(response) }).catch(e => console.log(e)) }, []);

Expected Results

Snack, code example, screenshot, or link to a repository:

nickwelp
nickwelp

Can you confirm whethee it works on Android?

Nov
23
1 week ago
Activity icon
issue

nickwelp issue comment facebook/react-native

nickwelp
nickwelp

[0.66.1] Fetch doesn't return or throw an error

Description

The fetch() method simply doesn't go through. The await method will wait forever (or just super long).

Version

0.66.1

Output of react-native info

System: OS: macOS 11.6 CPU: (24) x64 Intel(R) Xeon(R) CPU E5-2697 v2 @2.70GHz Memory: 68.76 MB / 12.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.4.2 - /usr/local/bin/node Yarn: Not Found npm: 8.1.0 - /usr/local/bin/npm Watchman: 2021.06.07.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: API Levels: 29, 30 Build Tools: 29.0.2, 30.0.2, 30.0.3, 31.0.0, 31.0.0 System Images: android-30 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7678000 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 11.0.10 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.66.1 => 0.66.1 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

Mobx is used in the project and the presenter is fetching a remote json file which is accessible. The fetch() method is defined but somehow, nothing is returned from it so the view is never updated. I tried adding console.log() around it but the line under it is never called. Strangely, it worked in another environment but after reinstalling everything and it doesn't work again. However, it never worked on this environment.

The remote url is https so I don't think it is related to the usesCleartextTraffic. This issue occurs on both Android and iOS.

Snack, code example, screenshot, or link to a repository

const res = await fetch('https://google.com');
const text = await res.text();
nickwelp
nickwelp

Using inlineRequires: false didn't make any difference for me. I see that this is a long running issue that has never been explained or entirely fixed. https://github.com/facebook/react-native/issues/21862 https://github.com/facebook/react-native/issues/20405

I'm suffering it now. My conjecture is a config that is automatically generated has two different competing library versions causing a conflict. This problem seemingly emerged out of no where, where a build one day works, the builds the next day break. I'm experiencing this issue in both Android and iOS and suspect the errant config is in react-native files, not ./ios or ./android

Nov
2
4 weeks ago
Activity icon
issue

nickwelp issue comment protocolbuffers/protobuf

nickwelp
nickwelp

Fix detection of existing Uint8Array

It looks like this patch fixes #1319, a 5 year old issue I just ran into. It would be awesome if it could get merged!

nickwelp
nickwelp
Activity icon
issue

nickwelp issue comment protocolbuffers/protobuf

nickwelp
nickwelp

JS: Type not convertible to Uint8Array

Hi!

I've been trying to get protobuf deserialization working in JavaScript but hitting a wall. I have a small sample message just to test everything is working:

message Sample {
    string text = 1;
    uint32 number = 2;
    bool truthiness = 3;
}

When I create a new Sample message (without deserializing it from anything), the message works fine. Serializing it to bytes yields me a 24 byte Uint8Array.

However, if I try to create a Sample message from existing bytes, I get an assertion error: Type not convertible to Uint8Array. This is what I've tried:

var Sample = // loaded in from require;
var dataBytes = // some existing uint8array;
var sample = new Sample(dataBytes);
var sample2 = Sample.deserializeBytes(dataBytes);

The first one (sample) will silently fail, but the message is broken from there out (sample.getText() returns 10 instead of a string, as expected.. other fields return garbage as well).

The second one throws the assertion error. I've verified that the Uint8Array I'm receiving and testing with is the same one I get from manually building one via serializeBytes in the console.

Here's my data: screen shot 2016-03-13 at 4 28 28 am

Am I perhaps just using this wrong? Thanks in advance!

nickwelp
nickwelp

This bug still exists, and the PR was not merged in

Activity icon
issue

nickwelp issue Toldry/RedditAutoCrosspostBot

nickwelp
nickwelp

On a Family Rated Video Game Board, Bot Links to Porn

https://www.reddit.com/r/ExiledKingdoms/comments/qkga2x/guys/

level 2
sub_doesnt_exist_bot
·
11h

The subreddit r/thingsthatmakeyougohmmm does not exist.

Did you mean?:

    r/PornThatMakesYouGoMmm

Consider creating a new subreddit r/thingsthatmakeyougohmmm.

Oct
21
1 month ago
pull request

nickwelp pull request manbomb/esp-idf-ble-provisioning-rn

nickwelp
nickwelp

Java bytecode communication

This PR adds a new Method that improves accuracy regarding communicating strings between React-Native and Java. The bridging mechanism sadly trims trailing null codes in strings and this mungs BLE communication data, which often are binary sequences represented as strings.

push

nickwelp push nickwelp/esp-idf-ble-provisioning-rn

nickwelp
nickwelp

added documentation added new method to interface

nickwelp
nickwelp

commit sha: 8fbfc023e3b089051a945f57f22acfca8c958c03

push time in 1 month ago
push

nickwelp push nickwelp/esp-idf-ble-provisioning-rn

nickwelp
nickwelp

adding example of how to use Provisioned Custom Data with Byte Accuracy accounting for React-Native bride weirdness

commit sha: a29aec889052fdf6b430582fccedbbb5582150df

push time in 1 month ago
Activity icon
created branch

nickwelp in nickwelp/esp-idf-ble-provisioning-rn create branch java-bytecode-communication

createdAt 1 month ago
push

nickwelp push nickwelp/esp-idf-ble-provisioning-rn

nickwelp
nickwelp

customData now with Byte[] for accuracy updating to android x in one library Byte[] management for custom data

commit sha: b40ba0f9b3dfa0bf7bb1eca7972e021ad6192eab

push time in 1 month ago
Oct
16
1 month ago
Activity icon
issue

nickwelp issue facebook/react-native

nickwelp
nickwelp

String translation between React-Native and Java is Trimming

I have a JS Uint8array that contains binary data, which is converted to a string and sent to Java which reads the string. These strings/byte arrays are made using protocol buffers. The string in JS is "R\u0000", with "\u0000" being a null code. When the string arrives in Java, it is only "R" and the \u0000 is stripped. The typecasting from JS to Java is stripping some data out.

I'm looking at using ReadableMap as a workaround.

System: OS: macOS 11.6 CPU: (8) x64 Apple M1 Memory: 20.20 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.0.0 - ~/.nvm/versions/node/v14.0.0/bin/node Yarn: 1.22.10 - ~/.nvm/versions/node/v14.0.0/bin/yarn npm: 6.14.4 - ~/.nvm/versions/node/v14.0.0/bin/npm Watchman: Not Found Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: Not Found IDEs: Android Studio: 4.1 AI-201.8743.12.41.7042882 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 15.0.2 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: ~0.63.4 => 0.63.4 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found (Use NPX, Expo, and react native modules)

Activity icon
issue

nickwelp issue comment facebook/react-native

nickwelp
nickwelp

String translation between React-Native and Java is Trimming

I have a JS Uint8array that contains binary data, which is converted to a string and sent to Java which reads the string. These strings/byte arrays are made using protocol buffers. The string in JS is "R\u0000", with "\u0000" being a null code. When the string arrives in Java, it is only "R" and the \u0000 is stripped. The typecasting from JS to Java is stripping some data out.

I'm looking at using ReadableMap as a workaround.

System: OS: macOS 11.6 CPU: (8) x64 Apple M1 Memory: 20.20 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.0.0 - ~/.nvm/versions/node/v14.0.0/bin/node Yarn: 1.22.10 - ~/.nvm/versions/node/v14.0.0/bin/yarn npm: 6.14.4 - ~/.nvm/versions/node/v14.0.0/bin/npm Watchman: Not Found Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: Not Found IDEs: Android Studio: 4.1 AI-201.8743.12.41.7042882 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 15.0.2 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: ~0.63.4 => 0.63.4 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found (Use NPX, Expo, and react native modules)

nickwelp
nickwelp

I developed a work around, encoding the null character and decoding it. It's worth mentioning that null characters are trimmed when going between react-native and java.

push

nickwelp push nickwelp/esp-idf-ble-provisioning-rn

nickwelp
nickwelp

my solution for now is to encode the \u0000 character as a longer string, transform it back once in java

commit sha: 7653c3c3d7cac8973baec26979e780e977f9f5b4

push time in 1 month ago
Oct
15
1 month ago
Activity icon
issue

nickwelp issue comment facebook/react-native

nickwelp
nickwelp

String translation between React-Native and Java is Trimming

I have a JS Uint8array that contains binary data, which is converted to a string and sent to Java which reads the string. These strings/byte arrays are made using protocol buffers. The string in JS is "R\u0000", with "\u0000" being a null code. When the string arrives in Java, it is only "R" and the \u0000 is stripped. The typecasting from JS to Java is stripping some data out.

I'm looking at using ReadableMap as a workaround.

System: OS: macOS 11.6 CPU: (8) x64 Apple M1 Memory: 20.20 MB / 16.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.0.0 - ~/.nvm/versions/node/v14.0.0/bin/node Yarn: 1.22.10 - ~/.nvm/versions/node/v14.0.0/bin/yarn npm: 6.14.4 - ~/.nvm/versions/node/v14.0.0/bin/npm Watchman: Not Found Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: Not Found IDEs: Android Studio: 4.1 AI-201.8743.12.41.7042882 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 15.0.2 - /usr/bin/javac Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.13.1 => 16.13.1 react-native: ~0.63.4 => 0.63.4 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found (Use NPX, Expo, and react native modules)

nickwelp
nickwelp

Enviromental info has been added.

Activity icon
issue

nickwelp issue facebook/react-native

nickwelp
nickwelp

String translation between React-Native and Java is Trimming

I have a JS Uint8array that contains binary data, which is converted to a string and sent to Java which reads the string. These strings/byte arrays are made using protocol buffers. The string in JS is "R\u0000", with "\u0000" being a null code. When the string arrives in Java, it is only "R" and the \u0000 is stripped. The typecasting from JS to Java is stripping some data out.

I'm looking at using ReadableMap as a workaround.

push

nickwelp push nickwelp/esp-idf-ble-provisioning-rn

nickwelp
nickwelp

debuging this string transfer issue react to java

commit sha: 3a2dd969c35071e0a26a3845f403841dbb25654f

push time in 1 month ago
Oct
14
1 month ago
push

nickwelp push nickwelp/esp-idf-ble-provisioning-rn

nickwelp
nickwelp

Java needed better Bytecode to string management

commit sha: fc3c66b10ad3443dd6f5489d78a8ace2a3ce5efb

push time in 1 month ago
Sep
10
2 months ago
Activity icon
created branch
createdAt 2 months ago
Activity icon
fork

nickwelp forked manbomb/esp-idf-ble-provisioning-rn

nickwelp MIT License Updated
fork time in 2 months ago