bill gate
2012-Jul-13 03:28 UTC
devise 2.1.0: return Completed 401 Unauthorized when post json datas
I got 401 unauthorized when I visit a action with post json datas. But I change post method to get, It works fine. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
bill gate
2012-Jul-13 03:49 UTC
Re: devise 2.1.0: return Completed 401 Unauthorized when post json datas
who can give me a help?! -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
Hassan Schroeder
2012-Jul-13 04:02 UTC
Re: Re: devise 2.1.0: return Completed 401 Unauthorized when post json datas
On Thu, Jul 12, 2012 at 8:49 PM, bill gate <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> who can give me a help?!Ah, you wanted the 20-minute response time plan -- will that be Visa or Mastercard? Start here: http://www.catb.org/~esr/faqs/smart-questions.html -- Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
Dheeraj Kumar
2012-Jul-13 04:57 UTC
Re: Re: devise 2.1.0: return Completed 401 Unauthorized when post json datas
I can give you a help. Dheeraj Kumar On Friday 13 July 2012 at 9:32 AM, Hassan Schroeder wrote:> On Thu, Jul 12, 2012 at 8:49 PM, bill gate <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org (mailto:lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org)> wrote: > > who can give me a help?! > > > Ah, you wanted the 20-minute response time plan -- will that be Visa > or Mastercard? > > Start here: http://www.catb.org/~esr/faqs/smart-questions.html > > -- > Hassan Schroeder ------------------------ hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org (mailto:hassan.schroeder-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org) > http://about.me/hassanschroeder > twitter: @hassan > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org (mailto:rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org). > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.
Matt Jones
2012-Jul-13 14:19 UTC
Re: devise 2.1.0: return Completed 401 Unauthorized when post json datas
On Thursday, 12 July 2012 23:28:48 UTC-4, Ruby-Forum.com User wrote:> > I got 401 unauthorized when I visit a action with post json datas. > But I change post method to get, > It works fine. > >You''ll need to post more details to get specific help; my guess would be that you''re either trying to authenticate for a post request, failing authenticity token checks, *or* not matching a route somehow. But those are just wild guesses without more specifics about what you''re attempting to do. --Matt Jones -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/VaJAKrrvIzgJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en-US.