I am trying to upload data using the below api but geeting the error as stated at the bottom
POST request to /rest/api/2/issue/FP-48/attachments returned an error code: status: 500 - Server Error (530) (proxy status: 530) body: java.lang.RuntimeException: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (JSON String, Number, Array, Object or token 'null', 'true' or 'false') at [Source: (String)"<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Oops - an error has occurred</title><link type='text/css' rel='stylesheet' href='/static-assets/metal-all.css' media='all'><script src='/static-assets/metal-all.js'></script><meta name="decorator" content="none" /></head><body class=" error-page error500"><script type="text/javascript">document.body.className += " js-enabled";</script><div id="page"><header id="header" role="ban"[truncated 1136 chars]; line: 1, column: 1]
Welcome to Atlassian Community.
Your API is correct but
From the error we can check that:-
1) 530 Error is for Authentication and Authorization error, check whether your API token is correct or not?
2) You have the correct permissions and credentials.
3) User name and password or correct.
4) Check the network and proxy are correctly configured.
5) error code 60 indicates that the JSON parser or JSON open and closing braces are not properly closed.
Vikram P
Join us to learn how your team can stay fully engaged in meetings without worrying about writing everything down. Dive into Loom's newest feature, Loom AI for meetings, which automatically takes notes and tracks action items.
Register today!Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.