dfinity / linkedup

An open professional network.
https://sdk.dfinity.org
Apache License 2.0
154 stars 43 forks source link

bug: CRC could be lowercase, which does not work #29

Open ninegua opened 4 years ago

ninegua commented 4 years ago

The python oneliner in README computes CRC, but if the result contains lower-case letter, it will not be recognized as a valid CanisterId, which leads to the following error when visiting the page in browser:

An error happened:
fromText@http://127.0.0.1:8080/index.js:2:21406
query@http://127.0.0.1:8080/index.js:2:142932
retrieveAsset@http://127.0.0.1:8080/index.js:2:143045
_loadJs@http://127.0.0.1:8080/index.js:2:89546
_main@http://127.0.0.1:8080/index.js:2:90616
@http://127.0.0.1:8080/index.js:2:91079
r@http://127.0.0.1:8080/index.js:2:358
@http://127.0.0.1:8080/index.js:2:1157
@http://127.0.0.1:8080/index.js:2:1167
@http://127.0.0.1:8080/index.js:2:158
@http://127.0.0.1:8080/index.js:2:223
ninegua commented 4 years ago

I also think we need better error message for an invalid CanisterId. Probably something in the userlib is not handling the response correctly. @hansl