ChangeSet TroubleShooting

From n² wiki

Jump to: navigation, search

Nearby: Changesets, Changeset Protocol

When you post a changeset to your store, it will return an HTTP status code.

[edit] 415 Unsupported Media Type

You may have sent the wrong Content-type header.

If you are posting to /meta (unversioned), you can send application/rdf+xml (if you are sending rdf/xml data) or application/vnd.talis.changeset+xml if you are posting a changeset document

If you are posting to /meta/changesets (versioned), send application/vnd.talis.changeset+xml - any other mime-type will be rejected

Make sure you are posting to the right URI, and are using the right mime-type

[edit] 405 Method Not Allowed

You are probably posting to the wrong URI. Check that you are sending it to /meta or /meta/changesets, without trailing slashes.

[edit] Why am I getting a SAXParseException when posting to my store even though XML is well-formed?

You may see the following error: rethrew: org.xml.sax.SAXParseException: Premature end of file. This often happens when using cURL from the command line and you supply user credentials when they're not needed. Try the command again without the authentication type, username or password

Personal tools