Git Product home page Git Product logo

fetch-salesforce's People

Contributors

joeferraro avatar jpmonette avatar kidtsunami avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fetch-salesforce's Issues

0.0.12 and 0.0.13 don't work in react native

in the simulator: self is not defined

in xcode:

2016-11-19 15:04:09.598 [warn][tid:NSOperationQueue 0x618000224800 :: NSOperation 0x61000004ad40 (QOS: DEFAULT)][RCTModuleData.mm:220] RCTBridge required dispatch_sync to load RCTDevLoadingView. This may lead to deadlocks
2016-11-19 15:04:11.239 [warn][tid:main][RCTEventEmitter.m:54] Sending `websocketFailed` with no listeners registered.
2016-11-19 15:04:11.341 [error][tid:com.facebook.react.JavaScript] Can't find variable: self
2016-11-19 15:04:11.342 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Can't find variable: self
2016-11-19 15:04:11.347 [warn][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: fetch is not a function. (In 'fetch(devServer.url+'symbolicate',{
method:'POST',
body:JSON.stringify({stack:stack})})', 'fetch' is undefined)
2016-11-19 15:04:11.387 [info][tid:main][RCTRootView.m:239] Running application PatientSupportMobileAccelerator ({
    initialProps =     {
    };
    rootTag = 1;
})
2016-11-19 15:04:11.388 [error][tid:com.facebook.react.JavaScript] Module AppRegistry is not a registered callable module (calling runApplication)
2016-11-19 15:04:11.389 [warn][tid:com.facebook.react.JavaScript] Unable to symbolicate stack trace: fetch is not a function. (In 'fetch(devServer.url+'symbolicate',{
method:'POST',
body:JSON.stringify({stack:stack})})', 'fetch' is undefined)
2016-11-19 15:04:11.389 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Module AppRegistry is not a registered callable module (calling runApplication)

What's up with this?

@joeferraro @jpmonette y'all have maintained this for a little bit. A few questions:

  1. Is this still in active use?
  2. Is there a better alternative?
  3. Should I look into collecting some feedback for issues?

request buffer implementation

for times when token is being refreshed, library should still collect requests in a buffer then retry them all once access token is refreshed

Implement proper logging module

React Native displays console.error messages in a big ugly red screen (e.g. when we have an error like an invalid_grant, which is basically a signal to the client that they need to re-authenticate). Given this library is most likely to be used for React Native, we should consider implementing a proper logging module that makes log levels and output configurable. At the very least, in the immediate term, we should change console.error statements to warn or log.

add oauth2 userinfo endpoint

url looks like so:

GET request, requires Authorization header

var userInfoEndpoint = 'https://'+BASE_URL+'/services/oauth2/userinfo';

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.