Comments (7)
I saw the same error, but after doing mix deps.uplock --all
and then mix deps.get
it went away (warning: this might introduce regressions in your app as it will update all dependencies to the latest versions). Seems like some of the dependencies need to be updated or something. May be poison
or httpotion
. The versions that work for me are:
- poison, 3.1.0
- httpoison, 0.11.2
- timex, 3.1.13
- tzdata, 0.5.12
from cloudex.
Hi,
Sorry for the late reaction, I missed the email notification.
Is this still an issue or can it be closed ?
Gerard
from cloudex.
Hey @smeevil, I haven't had a chance to test this out yet, but I will be getting back to this this week. We can close it and I can reopen if its still an issue.
Thanks for the insight @valo!
from cloudex.
Great :)
from cloudex.
I'm getting the same error when I upload local files. Uploading via URL works fine.
- poison, 2.2.0
- httpoison, 0.9.2
- timex, 3.0.8
- tzdata, 0.5.12
Here is the VCR JSON file I got when it went wrong:
[
{
"request": {
"body": "{:multipart, [{\"api_key\", \"345661626337471\"}, {\"signature\", \"6866352a6a830c94a0898d2b5eafe8572969db8f\"}, {\"timestamp\", \"1498581590\"}, {:file, \"test/assets/example.png\"}]}",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json"
},
"method": "post",
"options": [],
"request_body": "",
"url": "http://api.cloudinary.com/v1_1/dyb6wlcll/image/upload"
},
"response": {
"body": "<h2>Incomplete response received from application</h2>",
"headers": {
"cache-control": "no-cache, no-store, must-revalidate",
"Content-Type": "text/html; charset=UTF-8",
"Date": "Tue, 27 Jun 2017 16:39:51 +0000",
"Server": "cloudinary",
"Status": "502 Bad Gateway",
"Content-Length": "54",
"Connection": "keep-alive"
},
"status_code": 502,
"type": "ok"
}
}
]
By the way, one of my old project which worked fine can no longer upload local files as well. Here is the VCR JSON in the past:
[
{
"request": {
"body": "{:multipart, [{\"api_key\", \"345661626337471\"}, {\"signature\", \"2e1f41588b5d260d1d9bdb9d96bfb9b43ef36367\"}, {\"timestamp\", \"1478721780\"}, {:file, \"test/assets/example.png\"}]}",
"headers": {
"Content-Type": "application/x-www-form-urlencoded",
"Accept": "application/json"
},
"method": "post",
"options": [],
"request_body": "",
"url": "http://api.cloudinary.com/v1_1/dyb6wlcll/image/upload"
},
"response": {
"body": "{\"public_id\":\"vnsogcgcn0xvompdllcn\",\"version\":1478721781,\"signature\":\"ee1c4c55995477004c761f65187cd04a5bf9c5ce\",\"width\":100,\"height\":100,\"format\":\"png\",\"resource_type\":\"image\",\"created_at\":\"2016-11-09T20:03:01Z\",\"tags\":[],\"bytes\":151,\"type\":\"upload\",\"etag\":\"aa12dd75aee7ccca65d670297295ef03\",\"url\":\"http://res.cloudinary.com/dyb6wlcll/image/upload/v1478721781/vnsogcgcn0xvompdllcn.png\",\"secure_url\":\"https://res.cloudinary.com/dyb6wlcll/image/upload/v1478721781/vnsogcgcn0xvompdllcn.png\",\"original_filename\":\"example\"}",
"headers": {
"Cache-Control": "max-age=0, private, must-revalidate",
"Content-Type": "application/json; charset=utf-8",
"Date": "Wed, 09 Nov 2016 20:03:01 GMT",
"ETag": "\"5b1f2c7ec3479ebb05a5fbf5123bfe71\"",
"Server": "cloudinary",
"Status": "200 OK",
"X-Request-Id": "8f4154fec22ae900",
"X-UA-Compatible": "IE=Edge,chrome=1",
"Content-Length": "518",
"Connection": "keep-alive"
},
"status_code": 200,
"type": "ok"
}
}
]
from cloudex.
The request body confuses me a lot. Isn't it supposed to contain the file content instead of (local) file path in it?
from cloudex.
For posterity: I was trying to debug an error from cloudinary like this. It turns out I had a bad content-type in my request header. Hopefully thats helpful for somebody in the future.
from cloudex.
Related Issues (20)
- Adding support for retrieving a resource HOT 2
- upload return type is incorrect HOT 1
- Add 'moderation' to struct HOT 1
- Upload in clear
- Allow timer 3.2 HOT 1
- Update for latest timex 3.3.0 HOT 1
- Support for fetching remote images HOT 1
- Support for videos HOT 4
- Tests failing HOT 4
- Uploading video and audio files. HOT 1
- Signature includes `resource_type` HOT 1
- Using eager transformations in image upload. HOT 1
- Delete URL does not include `notification_url` HOT 1
- Make JSON lib configurable HOT 3
- Cloudex.delete/1 does not seem to delete asset HOT 2
- Add guidance in README on how I might be able to use this in my own context tests. Can I set up a local, sandboxed version of Cloudex?
- First process supervisor
- Timeouts on upload can't be configured HOT 1
- Cloud name not drawing from config HOT 1
- Compilation error when using phoenix helper
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudex.