Constant 503 errors from resources

#1

ionic cordova resources
or
ionic cordova platform add ios

Always goes like this:

Collecting resource configuration and source images - done!
Filtering out image resources that do not need regeneration - done!
Uploading source images to prepare for transformations - failed!
HTTP Error 503: POST https://res.ionic.io/api/v1/upload

Or occasionally, it gets past this and to transform service, then still 503

Been trying for hours now. Is there some issue with the resources server or am I doing something wrong?

5 Likes
Resource generator issue HELP!
#2

Does it work with a newly create project with ionic start?

If not: Report the problem at http://ionicframework.com/support#support please.

#3

Same issue here and others are getting it on this ticket.

#4

Same problem on brand new project. I have reported it as you suggested.

#5

Here’s a full error output if it helps :slight_smile:

Error: encountered bad status code (503) for https://res.ionic.io/api/v1/transform
body: <!DOCTYPE html>
	<html>
	  <head>
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<meta charset="utf-8">
		<title>Application Error</title>
		<style media="screen">
		  html,body,iframe {
			margin: 0;
			padding: 0;
		  }
		  html,body {
			height: 100%;
			overflow: hidden;
		  }
		  iframe {
			width: 100%;
			height: 100%;
			border: 0;
		  }
		</style>
	  </head>
	  <body>
		<iframe src="//www.herokucdn.com/error-pages/application-error.html"></iframe>
	  </body>
	</html>
    at Response.res.on (/Users/PROJECT-DIR/node_modules/@ionic/cli-utils/lib/cordova/resources.js:148:32)
    at emitNone (events.js:86:13)
    at Response.emit (events.js:185:7)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:185:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
    at process._tickCallback (internal/process/next_tick.js:104:9)
#6

Not really as this is the default Heroku error message - but the only people that could do anything about it are the Ionic team which you can only reach by using the support route - they are not very active here in the forum.

#7

Ah no problem I’ll go submit a bug report :slight_smile:

#8

I have same problem!

Ionic cordova resources returns error
#9

It was back for me for a moment there…

http://res.ionic.io/api/v1/upload

and the CLI looked like it was working again, but looks like it’s fell over again :frowning:

1 Like
#10

Awww boooo!! Hoping some wizard at Ionic fixes it soon, sat here being unable to work :frowning:

2 Likes
#11

The whole concept of using a webservice to resize your resource images is reasonably sound in terms of keeping the service up to date… but surely it’s more sustainable (for ionic the company ) to use some kind of npm local app to do it?

Starting to feel a little uncertain about their cloud provision stuff in the light of the ionic push rug being pulled from under people’s feet… and now basic infrastructure going wobbly :frowning:

2 Likes
#12

Working perfectly now :+1:

2 Likes
#13

i have the same problem now

#14

I have to run “ionic cordova resources ios” 4 times.
Don’t know why.
Generating platform resources: 8 / 32 complete - failed!
Generating platform resources: 12 / 32 complete - failed!
Generating platform resources: 17 / 32 complete - failed!
:heavy_check_mark: Generating platform resources: 32 / 32 complete - done!
:joy::joy::joy: