Open rayterrill opened 4 years ago
I'm seeing the same issue with v4.0.3 - the Promise
returned by apiGatewayClientWithCredentials
never resolves if you navigate to the APIs tab when not signed in.
Hi, I have the same issue. For production usage it's kind of high priority. Any idea when it will be fixed?
@paosp77 I'll be pushing a PR today
Hi guys we are experiencing the same issue. Any idea when this will be sorted? Thanks a lot!
Hello, Any updates on this issue? Still happening to me in the last version.
@eulogio-gutierrez I implemented a quick workaround in dev-portal/src/pages/Apis.jsx
where I am checking if there an apiKey available:
if (!store.apiKey) {
return (
<Segment placeholder style={{ margin: '5em' }}>
<Header icon>
<Icon name='sign-in' />
Please sign-in to access the available APIs
</Header>
<Button positive onClick={this.signIn}>Sign In</Button>
</Segment>
)
}
It looks like src/pages/Apis.jsx imports and calls getApi from services/api-catalog, which calls updateUsagePlansAndApisList, which appears to call apiGatewayClientWithCredentials from services/api, which appears to expect that cognito variables are set? Relative React n00b here.
/apis returns a 403 in DevTools, UI hangs with a spinning icon.