nodejs build API upload error 411

  • 18
  • Problem
  • Updated 6 years ago
  • Solved
The nodejs API for phonegap build (phonegap-build-api module v1) has started giving 411 error today.

[Error: <html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx</center>
</body>
</html>
]

This is the API call for uploading the .zip file:

api.post('/apps', options, function(e, data) {
...
}
Photo of puneet

puneet

  • 3 Posts
  • 0 Reply Likes
  • frustrated

Posted 6 years ago

  • 18
Photo of ismix

ismix

  • 3 Posts
  • 0 Reply Likes
This reply was created from a merged topic originally titled
Phonegap remote build gives 411 - Length Required.


Hi,

I can not take remote ios builds because it gives 411 - Length Required error. I can confirm that it was working yesterday and I didn't make any significant changes.

I tried both 3.4.0 and 3.5.0

This is the error that I am getting:

[INF] -phonegap-build:
[INF]
[INF] -phonegap-remote-login:
[INF]
[INF] -phonegap-remote-build:
[INF] [shellscript] [phonegap] compressing the app...
[INF] [shellscript] [phonegap] uploading the app...
[INF] [shellscript] [Error:
[INF] [shellscript] 411 Length Required [error]
[INF] [shellscript]
[INF] [shellscript] 411 Length Required
[INF] [shellscript] 411 Length Required
[INF] [shellscript]
[INF] [shellscript] 411 Length Required
[INF] [shellscript] nginx
[INF] [shellscript]
[INF] [shellscript]
[INF] [shellscript]
[INF] [shellscript]
[INF] [shellscript] nginx
[INF] [shellscript]
[INF] [shellscript]
[INF] [shellscript] ]

Thank you.
Photo of Søren Juul Rasmussen

Søren Juul Rasmussen

  • 4 Posts
  • 0 Reply Likes
I get the same error from CLI
Photo of Sofia Bakke

Sofia Bakke

  • 4 Posts
  • 0 Reply Likes
Me too... And I did not get it yesterday :( What is happening?
Photo of Joel Caton

Joel Caton

  • 9 Posts
  • 0 Reply Likes
Same errors here.. No significant changes to working code that would have affected build. What changed on the service side?
Photo of Luane Swart

Luane Swart

  • 3 Posts
  • 0 Reply Likes
Same here - was working yesterday!
Photo of Frederic Fillon

Frederic Fillon

  • 3 Posts
  • 0 Reply Likes
Same 411 Length Required
Photo of Jacob

Jacob

  • 1 Post
  • 0 Reply Likes
Same here:

[error]
411 Length Required

411 Length Required
nginx

Whats up?
Photo of Olivier Stahl

Olivier Stahl

  • 2 Posts
  • 0 Reply Likes
Same here with the CLI
Photo of Lukas Lorentzon

Lukas Lorentzon

  • 2 Posts
  • 0 Reply Likes
This reply was created from a merged topic originally titled
[error] html 411 Length Required.


Yesterday our app could be built via phonegap, today we get the error:
[error] <html>
<head><title>411 Length Required</title></head>
<body bgcolor="white">
<center><h1>411 Length Required</h1></center>
<hr><center>nginx</center>
</body>
</html>

Hopefully this is just a minor problem!

Thanks in advance!
Photo of Sofia Bakke

Sofia Bakke

  • 4 Posts
  • 0 Reply Likes
So nobody has the answer to how to fix this?
Yesterday it worked perfectly. I tried today with the exact same code, and got this error... So it has to be something wrong with phone gap build. When the application is built locally, there is no such problem.
Photo of Zahir

Zahir

  • 3500 Posts
  • 40 Reply Likes
The team will be looking into this.
Any news will be updated here soonest.
(Edited)
Photo of Luane Swart

Luane Swart

  • 3 Posts
  • 0 Reply Likes
Any idea how long this will take?
Photo of Kadir Özdemir

Kadir Özdemir

  • 1 Post
  • 0 Reply Likes
same here from CLI
Photo of Tal Gleichger

Tal Gleichger

  • 6 Posts
  • 0 Reply Likes
SAME PROBLEM HERE.

Why no one from Phonegap support answers??
Photo of ismael jimoh

ismael jimoh

  • 4116 Posts
  • 192 Reply Likes
Sorry All,

We are currently looking into this.
Photo of Sofia Bakke

Sofia Bakke

  • 4 Posts
  • 0 Reply Likes
Great! :D
Photo of Piotr Zygmunt

Piotr Zygmunt

  • 3 Posts
  • 1 Reply Like
i have the same problem
Photo of Tal Gleichger

Tal Gleichger

  • 6 Posts
  • 0 Reply Likes
Excuse me but it takes too long to solved. from the first place, its been more than 12 hours since the first reply of the support team. its not professional at all.
Photo of Luane Swart

Luane Swart

  • 3 Posts
  • 0 Reply Likes
I feel the same I have had this problem since I came to work at 8am (South African time) and its now almost 4pm and I still have this issue!
Photo of Piotr Zygmunt

Piotr Zygmunt

  • 3 Posts
  • 1 Reply Like
keep calm and build local
Photo of Yohann HAY

Yohann HAY

  • 3 Posts
  • 0 Reply Likes
Same problem here, it was working 4 hours ago.
Photo of Giles Wells

Giles Wells

  • 12 Posts
  • 1 Reply Like
I saw this yesterday afternoon and then it started working again. Now I am seeing it again as non-functional. Please do the needful.
Also I can't build local so this has me at a sticking point.
Photo of Giles Wells

Giles Wells

  • 12 Posts
  • 1 Reply Like
Ok so this downtime is actually a big plus for me. We have a machine that has phonegap working so now we are all just using that and "phongap serve" with different ports. Never knew about this feature and now its instant to refresh the app instead of the build remote, download, install, open process I had been using.
Photo of Giles Wells

Giles Wells

  • 12 Posts
  • 1 Reply Like
On a related note why is this showing all green is there are reported and confirmed issues? http://status.build.phonegap.com/
Photo of Jeremy Law

Jeremy Law

  • 2 Posts
  • 0 Reply Likes
And why after 12 hours have we only received 2 "we're working on it" messages? A real update would be nice
Photo of Olivier Stahl

Olivier Stahl

  • 2 Posts
  • 0 Reply Likes
Totally agree
Photo of Tamás Tusor

Tamás Tusor

  • 2 Posts
  • 1 Reply Like
This is not the most comfortable solution, but I think it works:
1. zip your app's www folder's content
2. upload it on https://build.phonegap.com/apps//builds
3. done

sorry for my bad English capabilities...
Photo of Giles Wells

Giles Wells

  • 12 Posts
  • 1 Reply Like
The only issue with the english is that this isn't a solution. Its a workaround, and a really slow one at that. But if it works then I guess its a functional workaround.
Photo of Tamás Tusor

Tamás Tusor

  • 2 Posts
  • 1 Reply Like
You are right, it is a workaround. Thanks.
Photo of Ryan Spradlin

Ryan Spradlin

  • 4 Posts
  • 0 Reply Likes
This issue has been on-going for at least 16 hours. Why is it not mentioned on the status page (http://status.build.phonegap.com/) or the official Twitter account (https://twitter.com/PhoneGapBuild)?

Lack of service status reporting is a recurring problem for PhoneGap Build. Please work on this.
Photo of Giles Wells

Giles Wells

  • 12 Posts
  • 1 Reply Like
For anyone following this thread I just had both an android and an iOS build work.
Photo of Jeremy Law

Jeremy Law

  • 2 Posts
  • 0 Reply Likes
It is working for me as well
Photo of puneet

puneet

  • 3 Posts
  • 0 Reply Likes
Works now. Thanks!

This conversation is no longer open for comments or replies.