Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Doesn't work with Node 6 #17

Open
roccomuso opened this issue Jul 8, 2016 · 4 comments
Open

Doesn't work with Node 6 #17

roccomuso opened this issue Jul 8, 2016 · 4 comments

Comments

@roccomuso
Copy link

de-gyp"
make: Entering directory '/home/rocco/Desktop/PROVE/prove-snapchat/node_modules/ursa/build'
  CXX(target) Release/obj.target/ursaNative/src/ursaNative.o
In file included from ../src/ursaNative.h:10:0,
                 from ../src/ursaNative.cc:3:
../node_modules/nan/nan.h:324:27: error: redefinition of ‘template<class T> v8::Local<T> Nan::imp::NanEnsureHandleOrPersistent(const v8::Local<T>&)’
   NAN_INLINE v8::Local<T> NanEnsureHandleOrPersistent(const v8::Local<T> &val) {
                           ^
../node_modules/nan/nan.h:319:17: note: ‘template<class T> v8::Handle<T> Nan::imp::NanEnsureHandleOrPersistent(v8::Handle<T>&)’ previously declared here
   v8::Handle<T> NanEnsureHandleOrPersistent(const v8::Handle<T> &val) {
                 ^
../node_modules/nan/nan.h:344:27: error: redefinition of ‘template<class T> v8::Local<T> Nan::imp::NanEnsureLocal(v8::Handle<T>&)’

@dannyvassallo
Copy link

@roccomuso I was having issues with the install because of the included ursa package on NPM. What I did to get the install to pass was npm install git://github.com/fisch0920/snapchat.git. I'm not sure our issues were the same but I am on Node 6 and had the install work after realizing that my failure was coming from ursa@8.x.x or something and the listed version in this repo's package.json was 9

@roccomuso
Copy link
Author

@dannyvassallo So you were able to have it working? does it work or there's some issue with breaking changes made on the snapchat unofficial API?

@dannyvassallo
Copy link

@roccomuso same Snapchat._getGoogleAuthToken error 827:21 issue now that the install takes -- I've cloned the package and am peeking at the code but I'm not sure it's an issue with snapchat itself or something with the auth into google. It seems the offending code is this request:

Request.postRaw({
      'url': 'https://android.clients.google.com/auth',
      'form': {
        'google_play_services_version': '7097038',
        'device_country': 'us',
        'operatorCountry': 'us',
        'lang': 'en_US',
        'sdk_version': '19',
        'accountType': 'HOSTED_OR_GOOGLE',
        'Email': gmailEmail,
        'EncryptedPasswd': encryptedGmailPassword,
        // 'Passwd': gmailPassword, // unencrypted version
        'service': 'audience:server:client_id:694893979329-l59f3phl42et9clpoo296d8raqoljl6p.apps.googleusercontent.com',
        'source': 'android',
        'androidId': '378c184c6070c26c',
        'app': 'com.snapchat.android',
        'client_sig': '49f6badb81d89a9e38d65de76f09355071bd67e7',
        'callerPkg': 'com.snapchat.android',
        'callerSig': '49f6badb81d89a9e38d65de76f09355071bd67e7'
      },
      'headers': {
        'device': '378c184c6070c26c',
        'app': 'com.snapchat.android',
        'Accept-Encoding': 'gzip',
        'User-Agent': 'GoogleAuth/1.4 (mako JDQ39)'
      }
    }

I'm trying to resolve this (if that's even possible), but I've also stumbled across this article here. I'm not sure what this means for the functionality we're used to with these packages -- but I guess we'll find out. I'll post back if I can resolve this.

@roccomuso
Copy link
Author

ok, well anyway seems to be that soon they will release their official API, let's see :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants