jeffaudio

1

votes
0

answer
430

views

Enabling zuul retry breaks Eureka routing on PCF

I'm trying to enable retry capability within a Zuul gateway, and am able to get things working locally, but when I deploy the gateway to PCF, I get the following error when zuul.retryable=true: { 'timestamp': 1524669167094, 'status': 500, 'error': 'Internal Server Error', 'exception': 'com.netflix.z...
jeffaudio
1

votes
1

answer
310

views

How to throw an exception on an CompletableFuture.get() call?

Is there a way to have mockito throw an exception on the CompletableFuture.get() call and not just the asynchronous method? For example, given the following (incorrect) test case: @Test public void whenRunnerThrows_thenReturn5xx() throws Exception { when(service.runAsync(any(),any())).thenThrow(new...
jeffaudio
1

votes
1

answer
919

views

Getting user info from Azure API App when authenticated via browser form

When authenticating in Chrome and x-zumo-auth header using Postman, my API app successfully identifies a user's upn using the following code in the controller: Runtime runtime = Runtime.FromAppSettings(Request); EmaUserInfo user = runtime.CurrentUser; TokenResult token = await user.GetRawTokenAsync(...
jeffaudio
6

votes
2

answer
1.7k

views

Reusable AngularJS Service within an App

I'm very new to AngularJS, so it's possible I'm asking the entirely wrong question. What I'm trying to accomplish is create a reusable class with data binding in a single app. The following demonstrates what I'm trying to accomplish with a very simple example. Say I want to create a counter with a v...
jeffaudio
2

votes
1

answer
1k

views

Writing to Azure Table Storage with BeginExecute

I'm trying to write to Azure Table Storage asynchronously using BeginExecute but have been getting inconsistent results. When I change BeginExecute to Execute, then everything gets written properly, but I'm guessing I have something wrong in my threads that they are either cancelling each other or s...
jeffaudio
2

votes
2

answer
1.7k

views

Expected HTTP status code for an action on a disabled resource

What would the expected/proper HTTP status code on an action given the following: the request syntax is correct (eliminates 400) user is authenticated (eliminates 401) user is authorized to perform the action (eliminates 403) location/resource exists (eliminates 404) method is implemented (eliminate...
jeffaudio
3

votes
2

answer
4.8k

views

Authenticate to Azure API App using ADAL

I have an Azure API App marked as 'Public (authenticated)' and set up an Azure Active Directory identity in the associated gateway as detailed in Protect an API App. I then created a native application in the same Azure Active Directory Tenant and added permission to access the Gateway in the delega...
jeffaudio
2

votes
3

answer
1.1k

views

py2app and xml.etree.ElementTree

I'm trying to build an app that uses some xml data using Python's built-in xml.etree.ElementTree class. It works properly when I run from the command line, but when I build it, I get an error 'ImportError: No module etree.ElementTree.' I'm guessing this is because I'm not importing that module corre...
jeffaudio
3

votes
3

answer
3.1k

views

py2exe/pyinstaller and DispatchWithEvents

I have a program that uses the win32com library to control iTunes, but have been having some issues getting it to compile into an executable. The problem seems to revolve around using DispatchWithEvents instead of Dispatch. I've created a very simple program to illustrate my problem: import win32com...
jeffaudio