Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7072549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:49:20+00:00 2026-05-28T05:49:20+00:00

I’m building a RESTful app on Django and Tasty Pie. I have a problem

  • 0

I’m building a RESTful app on Django and Tasty Pie. I have a problem with PUT and POST methods. When I do a request via Curl I have an error.

Curl requests:

curl -i -H "Content-Type :application/json" -X POST -d '{"site_id":2,"post":2}' --user log:pass http://domain.com/core/api/v1/bookmarklet_post/

curl -i -H "Content-Type :application/json" -X PUT -d '{"site_id":2,"post":2}' --user log:pass http://domain.com/core/api/v1/bookmarklet_post/

The error:

{"error_message": "The format indicated 'application/x-www-form-urlencoded' had no
available deserialization method. Please check your ``formats`` and ``content_types`` on   
your Serializer.", "traceback": "Traceback (most recent call last):\n\n  File    
\"/home/ilya/envs/rebelmouse/lib/python2.7/site-packages/tastypie/resources.py\", line 
178,  in wrapper\n    response = callback(request, *args, **kwargs)\n\n  File  
\"/home/ilya/envs/rebelmouse/lib/python2.7/site-packages/tastypie/resources.py\", line 
379,  in dispatch_list\n    return self.dispatch('list', request, **kwargs)\n\n  File  
\"/home/ilya/envs/rebelmouse/lib/python2.7/site-packages/tastypie/resources.py\", line 
409,  in dispatch\n    response = method(request, **kwargs)\n\n  File  
\"/home/ilya/envs/rebelmouse/lib/python2.7/site-packages/tastypie/resources.py\", line 
1020,  in put_list\n    deserialized = self.deserialize(request, request.raw_post_data,  
format=request.META.get('CONTENT_TYPE', 'application/json'))\n\n  File  
\"/home/ilya/envs/rebelmouse/lib/python2.7/site-packages/tastypie/resources.py\", line 
328,  in deserialize\n    deserialized = self._meta.serializer.deserialize(data,     
format=request.META.get('CONTENT_TYPE', 'application/json'))\n\n  File  
\"/home/ilya/envs/rebelmouse/lib/python2.7/site-packages/tastypie/serializers.py\", line  
159, in deserialize\n    raise UnsupportedFormat(\"The format indicated '%s' had no  
available deserialization method. Please check your ``formats`` and ``content_types`` on  
your Serializer.\" % format)\n\nUnsupportedFormat: The format indicated 'application/x-
www- form-urlencoded' had no available deserialization method. Please check your 
``formats`` and  ``content_types`` on your Serializer.\n"}

Serializer are implemented in my resource class:

class BookmarkletPostResource(Resource):
    site_id = fields.CharField(attribute='site_id')
    post = fields.CharField(attribute='post')    

    class Meta:
        resource_name = 'bookmarklet_post'
        include_resource_uri = False
        limit = 10
        default_format = "application/json"
        object_class = ProxyStore
        authorization = Authorization()
        serializer = Serializer()
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:49:21+00:00Added an answer on May 28, 2026 at 5:49 am

    The content type header colons are misplaced.

    It should look like this instead : -H "Content-Type: application/json"

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to loop through a bunch of documents I have to put
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have a French site that I want to parse, but am running into
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.