Comments (7)
Can you post the code that triggers the error?
from parse-ruby-client.
@adelevie sure, seems like it's pointing to the save.
/var/deploy/trivial-mailer/web_head/shared/bundle/ruby/1.9.1/gems/parse-ruby-client- 0.1.15/lib/parse/client.rb:106:in `request'
/var/deploy/trivial-mailer/web_head/shared/bundle/ruby/1.9.1/gems/parse-ruby-client-0.1.15/lib/parse/object.rb:120:in `save'
/var/deploy/trivial-mailer/web_head/releases/20130908003949/app/workers/games_manager.rb:181:in `process_end_games'
In my code, 181 is the following user save.
# award the win and loss
winningPlayer["wins"] = Parse::Increment.new(1)
winningPlayer["centsPaidFor"] += 3
winningPlayer.save <-- line 181
from parse-ruby-client.
@adelevie README says the following, so I am not sure if I am passing the master-key correctly?
If you want to access your data ignoring all ACLs, you can use the master key provided on the Dashboard.
Instead of the X-Parse-REST-API-Key header, set the X-Parse-Master-Key header. For backward compatibility,
you can also do master-level authentication using HTTP Basic Auth, passing the application id as the username
and the master key as the password. For security, the master key should not be distributed to end users, but if
you are running code in a trusted environment, feel free to use the master key for authentication.
from parse-ruby-client.
Any help on this guys? Many Thanks.
from parse-ruby-client.
I have been digging more on this, what's strange now is that in DEVELOPMENT mode it works, no errors are thrown, but in PRODUCTION mode under RAILS it fails with the above message, any thoughts? In both cases I am using the same exact master_key .. this is confusing.
from parse-ruby-client.
Are you able to log any of the outgoing HTTP requests to Parse?
On Thu, Sep 12, 2013 at 6:28 PM, ddavtian [email protected] wrote:
I have been digging more on this, what's strange now is that in
DEVELOPMENT mode it works, no errors are thrown, but in PRODUCTION mode
under RAILS in fails with the above message, any thoughts? In both cases I
am using the same exact master_key .. this is confusing.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/106#issuecomment-24360913
.
from parse-ruby-client.
This was an operator error on my part. I am using resque-scheduler and Parse.init had to be called from within a local method vs. before I had it declared inside the class.
def self.perform(method)
self.new.send(method)
end
def start()
Parse.init :application_id => "APP_ID_GOES_HERE",
:master_key => "MASTER_KEY_GOES_HERE"
from parse-ruby-client.
Related Issues (20)
- Why does this require bundler to run? HOT 2
- How to initialize Parse key HOT 3
- Parse Retirement HOT 10
- Can't use github master version HOT 5
- "both URI are relative" when configuring after self-hosted Parse server HOT 4
- unable to create client from console HOT 1
- Google OAuth Configuration
- client key shouldn't be required HOT 3
- Query can end up doing a POST! HOT 10
- Remove support for Ruby 1.9 and 2.0 HOT 4
- Running with local parse server HOT 2
- client.query - error client is undefined method in the contoller HOT 7
- back4app URL HOT 6
- Switch off parse.com HOT 3
- Switch tests to a hosted Parse server
- Multiple Coveralls comments
- Future of this project HOT 2
- Does Parse::Cloud::Function.new Still Work? HOT 2
- user = User.authenticate stopped working HOT 5
- NoMethodError occuered during retry request. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from parse-ruby-client.