Git Product home page Git Product logo

force-server's People

Contributors

ccoenraets avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

force-server's Issues

Error and Response do not match JSForce Callbacks

So I am using this in a project where I am using Force Server to run on my machine locally without having to deploy the JSForce version to SFDC. However, the problem I keep running into is that the callbacks are reversed, when I get a good response from Force-Server the err is the second parameter and the response is the first. With JSForce it is the opposite, it would be nice if these matched, and would improve the development experience. I can work on it if you're interested.

Test server requires re-authorization on refresh

When running the example server (the list of contacts), I have to reauthorize the app on my Salesforce account each time the page reloads. Is this because I'm running the server locally, or is there a way to avoid this?

oauth token refresh call failing (HTTP form POST proxying does not work)

As documented here, In order to get a new access_token, I need to make a regular form-submission type POST request (Content-Type: application/x-www-form-urlencoded)

However when using this proxy the POST body does not seem to reach the endpoint. No matter what data I pass in, the response is always {"error_description":"grant type not supported","error":"unsupported_grant_type"}

According to this line
https://github.com/ccoenraets/force-server/blob/master/server.js#L45

It looks like the proxy server assumes that every request body is in JSON format, which is not the case for this OAuth API.

Application Error

When doing a POST or GET that returns a 503 error from the proxy, the proxy goes down for about an hour. When you go the heroku url, you get an Application Error message, instead of the welcome to force server message. Wait about an hour and the server comes back up. What is happening and how do I resolve this?

Edit: The image below is of my force-server heroku page.
image

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.