question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

The server responded with a status of 422 (Unprocessable Entity)

See original GitHub issue

Hi,

I’ve been trying to produce an ember-twiddle but every time I add a component i’m no longer able to save the twiddle as a gist.

For example from this twiddle (effectively a brand new one)

https://ember-twiddle.com/1a99a88881f28defaac4727c127a5257

And creating a component (both hbs and js) called sign-in-header then pasting

import Ember from 'ember';

export default Ember.Component.extend({
  session: Ember.inject.service(),

  tagName: 'div',
  classNames: ['sign-in-content'],

  actions: {
    gotoMe() {
      this.sendAction();
    }
  }
});

appears to always prevent the twiddle from being saved in the future.

no matter what saving as a gist logs to the console

PATCH https://api.github.com/gists/1a99a88881f28defaac4727c127a5257 422 (Unprocessable Entity)
Error: The adapter rejected the commit because it was invalid
at new Error (native)
    at Error.t (https://assets.ember-twiddle.com/assets/vendor-2b693411e8f8dfb130561cc53481af0e.js:12:25335)
    at Error.i (https://assets.ember-twiddle.com/assets/vendor-2b693411e8f8dfb130561cc53481af0e.js:81:2858)
    at Error.r (https://assets.ember-twiddle.com/assets/vendor-2b693411e8f8dfb130561cc53481af0e.js:81:3083)
    at r.handleResponse (https://assets.ember-twiddle.com/assets/vendor-2b693411e8f8dfb130561cc53481af0e.js:81:8538)
    at r.c.error (https://assets.ember-twiddle.com/assets/vendor-2b693411e8f8dfb130561cc53481af0e.js:81:9225)
    at c (https://assets.ember-twiddle.com/assets/vendor-2b693411e8f8dfb130561cc53481af0e.js:5:19300)
    at Object.fireWith [as rejectWith] (https://assets.ember-twiddle.com/assets/vendor-2b693411e8f8dfb130561cc53481af0e.js:5:20117)
    at r (https://assets.ember-twiddle.com/assets/vendor-2b693411e8f8dfb130561cc53481af0e.js:7:2143)
    at XMLHttpRequest.t (https://assets.ember-twiddle.com/assets/vendor-2b693411e8f8dfb130561cc53481af0e.js:7:8328)

I couldn’t find this issue before so have logged it here in the hopes that there may be a solution.

If you need any more details I’d be happy to try to help if I can.

Many thanks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
Gaurav0commented, Jul 4, 2016

@chrism @bartocc Can you please verify this is fixed for you on https://canary.ember-twiddle.com ?

0reactions
chrismcommented, Jul 19, 2016

Hi @Gaurav0 sorry for the slow reply.

It seems to be working fine now — thank you so much for fixing this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Fix the HTTP 422 Error - Kinsta
Error 422 is an HTTP code that tells you that the server can't process your request, although it understands it. The full name...
Read more >
Failed to load resource: the server responded ... - Stack Overflow
The HTTP error 422 is returned by Laravel whenever you ask a Controller to validate a request and this validation fails.
Read more >
422 Unprocessable Entity Explained - KeyCDN Support
A 422 status code occurs when a request is well-formed, however, due to semantic errors it is unable to be processed. This HTTP...
Read more >
HTTP 422 Unprocessable Entity - Hexadecimal
The HTTP 422 status code means the server understands the response body but couldn't process the request because there's something wrong with the...
Read more >
The Server Responded With A Status Of 422 (Unprocessable ...
The HyperText Transfer Protocol HTTP 422 Unprocessable Entity response status code indicates that the server understands the content type. PHP frameworks ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found