Javascript Quickstart - 401 Unauthorized Error

Receiving following error when following steps in https://www.netifi.com/getstarted-js

yarn install && yarn protoc

**yarn install v0.24.5**

[1/4] πŸ” Resolving packages...

[2/4] 🚚 Fetching packages...

error An unexpected error occurred: "https://sonatype.netifiinc.com/repository/npm-group/babel-preset-env/-/babel-preset-env-1.7.0.tgz: Request failed \"401 Unauthorized\"".

info If you think this is a bug, please open a bug report with the information provided in "/Users/netifi/netifi-quickstart-js/yarn-error.log".

info Visit **https://yarnpkg.com/en/docs/cli/install** for documentation about this command.

Thanks for bringing this to our attention. It looks like the yarn.lock file for our 1.6.4 release was generated using our private registry, rather than the npm registry. If you delete yarn.lock and try the install again, it should work this time. I’ll also update the repository with fixes to the lockfile.

EDIT: I’ve released v1.6.5 of the client and quickstart, so please pull the latest versions when you can. Thanks!

Thanks for the quick response! I’m getting this error after installing the latest version of protobuf - 3.8.0

[4/4] β „ rsocket-rpc-protobuf: /Users/netifi/netifi-quickstart-js/node_modules/rsocket-rp
error /Users/netifi/netifi-quickstart-js/node_modules/rsocket-rpc-protobuf: Command failed.
Exit code: 1
Command: sh
Arguments: -c prebuild-install || cmake-js rebuild
Directory: /Users/netifi/netifi-quickstart-js/node_modules/rsocket-rpc-protobuf
Output:
prebuild-install WARN install No prebuilt binaries found (target=12.4.0 runtime=node arch=x64 libc= platform=darwin)
info TOOL Using Unix Makefiles generator.
info TOOL Using c++11 compiler standard.
info CMD CLEAN
info RUN cmake -E remove_directory "/Users/netifi/netifi-quickstart-js/node_modules/rsocket-rpc-protobuf/build"
info CMD CONFIGURE
info RUN cmake "/Users/netifi/netifi-quickstart-js/node_modules/rsocket-rpc-protobuf" --no-warn-unused-cli -G"Unix Makefiles" -DCMAKE_JS_VERSION="3.7.3" -DCMAKE_BUILD_TYPE="Release" -DCMAKE_LIBRARY_OUTPUT_DIRECTORY="/Users/netifi/netifi-quickstart-js/node_modules/rsocket-rpc-protobuf/build/Release" -DCMAKE_JS_INC="/Users/.cmake-js/node-x64/v12.4.0/include/node;/Users/netifi/netifi-quickstart-js/node_modules/nan" -DNODE_RUNTIME="node" -DNODE_RUNTIMEVERSION="12.4.0" -DNODE_ARCH="x64" -DCMAKE_CXX_FLAGS="-std=c++11 -D_DARWIN_USE_64_BIT_INODE=1 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DBUILDING_NODE_EXTENSION -w" -DCMAKE_SHARED_LINKER_FLAGS="-undefined dynamic_lookup"
Not searching for unused variables given on the command line.
-- The C compiler identification is AppleClang 9.0.0.9000039
-- The CXX compiler identification is AppleClang 9.0.0.9000039
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- Found Protobuf: /usr/local/lib/libprotobuf.a (found version "3.8.0") 
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/netifi/netifi-quickstart-js/node_modules/rsocket-rpc-protobuf/build
info CMD BUILD
info RUN cmake --build "/Users/netifi/netifi-quickstart-js/node_modules/rsocket-rpc-protobuf/build" --config Release
Scanning dependencies of target rsocket_rpc_js_plugin
[ 25%] Building CXX object CMakeFiles/rsocket_rpc_js_plugin.dir/src/rsocket/options.pb.cc.o
In file included from /Users/netifi/netifi-quickstart-js/node_modules/rsocket-rpc-protobuf/src/rsocket/options.pb.cc:4:
/Users/netifi/netifi-quickstart-js/node_modules/rsocket-rpc-protobuf/src/rsocket/options.pb.h:122:68: error: non-virtual member function marked 'final' hides virtual member function
      bool deterministic, ::google::protobuf::uint8* target) const final;
                                                                   ^
/usr/local/include/google/protobuf/message_lite.h:454:18: note: hidden overloaded virtual function 'google::protobuf::MessageLite::InternalSerializeWithCachedSizesToArray' declared here: different number of parameters (1 vs 2)
  virtual uint8* InternalSerializeWithCachedSizesToArray(uint8* target) const;
                 ^
/Users/netifi/netifi-quickstart-js/node_modules/rsocket-rpc-protobuf/src/rsocket/options.pb.cc:11:10: fatal error: 'google/protobuf/wire_format_lite_inl.h' file not found
#include <google/protobuf/wire_format_lite_inl.h>
         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
make[2]: *** [CMakeFiles/rsocket_rpc_js_plugin.dir/src/rsocket/options.pb.cc.o] Error 1
make[1]: *** [CMakeFiles/rsocket_rpc_js_plugin.dir/all] Error 2
make: *** [all] Error 2
ERR! OMG Process terminated: 2

We are currently pinned to protobuf version 3.6.1. We have not had the cycles to keep the custom RSocket RPC plugin in step with protobuf’s version especially as the APIs have changed a bit and would require a more in depth rework and not just a version number change.

  1. Installed protobuf v3.6.1
  2. Cloned quickstart v1.6.5
  3. Did not remove yarn.lock

Everything worked – Thanks