Chris Thornton
Posts: 0
Joined: Wed Aug 14, 2013 1:27 pm

Proxy in Appery

Hi, I'm new to Appery/App's in general.

I'm linking my App to information from Basecamp. That is all working fine. I had the skeleton for my app up and working.
Just come back from lunch, and switched off the proxy in all of the services to see if it would rectify a little problem that I came across- where the order of my lists aren't displayed properly from the basecamp api.

Unfortunately, now nothing works!

What are proxy's, I thought they just held information from last time you use a service, to make loading pages quicker. This is why I turned them off, thinking it would force my app to re-read the information from basecamp and hopefully sort out the list order problem I was getting.

Please Help!

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Proxy in Appery

Chris Thornton
Posts: 0
Joined: Wed Aug 14, 2013 1:27 pm

Proxy in Appery

Thanks for that Marina.

However, that article seems to suggest that if there is a problem the service test shouldn't work. However, the test is successful with or without the Appery proxy.

Is this what you would expect?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Proxy in Appery

Sorry, do you mean testing inside builder? If any service doesn't work when you test app in browser try to switch on Proxy here is why http://docs.appery.io/documentation/c...

Chris Thornton
Posts: 0
Joined: Wed Aug 14, 2013 1:27 pm

Proxy in Appery

Yeah testing inside service builder (pressing the green test button) works with or without the proxy on.

However, when live testing the App on screen or on a device, the service just doesn't do anything when the proxy is switched off.

I've triple checked the events. The right service is being invoked when it is meant to be. But Appery just doesn't want to know!

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Proxy in Appery

Hi Chris,

This is a standard app behaviour. Why do you need to untick "Use Appery.io proxy"?

Chris Thornton
Posts: 0
Joined: Wed Aug 14, 2013 1:27 pm

Proxy in Appery

Hi Katya,

Like I said, I'm new to all this, I thought that unticking the proxy it might resolve an ordering issue with a list that I'm using via an API with basecamp.

From the document Marina sent me it seems that wouldn't have solved my problem. However, since re-ticking the proxy nothing is working.

I've started making a new app- repeating all that I have done in toady (before I unticked the proxy) However, nothing is working, which is really annoying, because it all worked this morning!

I really don't understand. I'm generating a title and a URL from an API response. This URL is then being set as a variable once the service is "complete". The saved URL in this variable is then being used to set the URL of a further service so I can get to information I need from basecamp.

As I said, it was all working this morning, I've redone every step, yet the apps/responses no longer work.

Any ideas?

Chris Thornton
Posts: 0
Joined: Wed Aug 14, 2013 1:27 pm

Proxy in Appery

It appears that when I try and store the variable it is not being stored.

Rather than having all the event happening automatically one after another I split them up, so that a click of the item should force the generated URL to be stored as the variable.

But still dead in the water?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Proxy in Appery

Chris,

Are there any errors in Console?

Chris Thornton
Posts: 0
Joined: Wed Aug 14, 2013 1:27 pm

Proxy in Appery

I looked for errors in the console.

"Refused to set unsafe header "User-agent" "

I'm not overly tech savvy- does this mean my computer is blocking something, or is there another problem I need to address somewhere?

I've tried somethings this morning, and I'm finding that the RESTservices are working, having turned the proxies all back on.
The problem seems when I create an event after a complete service to set a variable. The variable is not being saved.

Does this tie in with the error in the console?

Return to “Issues”