Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

400 error when adding new row #49

Closed
tjwebb opened this issue Dec 7, 2012 · 3 comments
Closed

400 error when adding new row #49

tjwebb opened this issue Dec 7, 2012 · 3 comments

Comments

@tjwebb
Copy link

tjwebb commented Dec 7, 2012

Sorry for blowing up your issue tracker guys. But I think resolving all these issue will go a long way towards making it easier (possible?) for others to contribute to the project.

I get 400 errors when I try to add a row to my table:

POST http://nbt.gis.io:3000/api/v1/tables/nbt_offices/records/ 400 (Bad Request)

The response from that request is actually this:

{
    id: 2,
    name: "nbt_offices",
    total_rows: 0,
    rows: [ ]
}

This from the logfile:

PL/Python function "update_timestamp": INSERT INTO "nbt_offices" DEFAULT VALUES RETURNING "cartodb_id"
[pool] Found a connection for cartodb_dev_user_2_db:development_cartodb_user_2 (2)
========== exception on records#create ==========
#<NoMethodError: undefined method `to_sym' for nil:NilClass>
=================================================
Completed 400 Bad Request in 114ms (Views: 0.5ms | Models: 0.0ms)

Strangley, though, adding a new column works just fine. Any idea how to fix this or what it means?

@tjwebb
Copy link
Author

tjwebb commented Dec 7, 2012

Sorry that was my fault -- I hadn't installed the varnish python module. But new problem: now when I add a row, the rails server locks up and I get no response at all. ??

@tjwebb
Copy link
Author

tjwebb commented Dec 7, 2012

Instead of starting all the processes separately, I started them using foreman. Now everything works

@strk
Copy link

strk commented Jan 27, 2014

Closing as resolved :)

@strk strk closed this as completed Jan 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants