-
Re: 400 error, "There was an error fetching file http://url. HTTP error code: 403" when trying to attach a document to a Jive place using the REST API.
rashedtalukder Nov 30, 2015 10:23 AM (in response to mposada)Have you tried using https?
-
Re: 400 error, "There was an error fetching file http://url. HTTP error code: 403" when trying to attach a document to a Jive place using the REST API.
ryanrutan Dec 2, 2015 1:47 PM (in response to rashedtalukder)Note that since you are trying to do an attachment via the attachments block and not via multi-part requests, you will need to make sure that the URL you provide in "url" is referencable from your Jive instance. in this case, if you are using the Jive Sandbox, you need to make sure that the URL is public to the internet, and not behind a firewall
Hope that helps. =)
-
Re: 400 error, "There was an error fetching file http://url. HTTP error code: 403" when trying to attach a document to a Jive place using the REST API.
mposada Dec 7, 2015 8:37 AM (in response to ryanrutan)Hi Ryan,
Both the Jive instance and the document are located on the same server under a VPN connection, so apparently the Jive instance should be able to reach the document. Is there any Jive REST API call that could give more details about why is not able to fetch the document from that location or a way to verify that the URL provided is indeed referenceable from the Jive instance?
Note: Indeed when the url of the document is public the API call works correctly!
Thanks!
-
-
-
Re: 400 error, "There was an error fetching file http://url. HTTP error code: 403" when trying to attach a document to a Jive place using the REST API.
Jeremy.moody@landesk.com Dec 7, 2015 2:45 AM (in response to mposada)Hi Mijail,
Did you ever succeed with this?
I was trying the same thing and tried hosting the files on various servers without success.
Regards,
Jeremy
-
Re: 400 error, "There was an error fetching file http://url. HTTP error code: 403" when trying to attach a document to a Jive place using the REST API.
mposada Dec 7, 2015 9:09 AM (in response to Jeremy.moody@landesk.com)Hi Jeremy,
When the url of the attachment/document is public the Jive REST API v3 call works correctly!
-
Re: 400 error, "There was an error fetching file http://url. HTTP error code: 403" when trying to attach a document to a Jive place using the REST API.
harshtsr Sep 14, 2017 11:58 AM (in response to mposada)Can someone get back to this thread?
How to use the File upload api, for a document residing on my intranet.
It works fine when i use a URL on the intranet but gives error 403 when I use a a url which is on my intranet
-
Re: 400 error, "There was an error fetching file http://url. HTTP error code: 403" when trying to attach a document to a Jive place using the REST API.
bmurphy Nov 27, 2017 10:03 AM (in response to harshtsr)I have this same issue as well trying to use https://developers.jivesoftware.com/api/v3/9.0/rest/PlaceService.html#createPlaceAvatar(String, String). I've updated an image to the /images endpoint, but the /places/{placeID}/avatar endpoints gives a 403 trying to reference that image
-
-
-