Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to getEnvironments from space

See original GitHub issue

Using the content-management api and looking at the docs getEnvironments() here there is a missing piece in the URL created.

Per the docs the url should be /spaces/{space_id}/environments

Instead what is sent dropped the {space_id} and instead queries to /spaces/environments

Using the latest package contentful-management@5.11.2

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

snurby7commented, Sep 26, 2019

All good, I made a terrible mistake higher up the chain.

snurby7commented, May 24, 2022

Can you share your “terrible mistake” - I think I am doing the same 😦

If I knew what it was I’d tell you, probably just some bad logic where I was calling on the wrong environment or not waiting for something, sadly I don’t have access to that old code anymore 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue connecting to preview api - Contentful Community
This fails with a 404: The resource could not be found. I also cannot call space.getEnvironments() const environment = await space.
Read more >
create-space-api.js - Contentful Developer Documentation
Contentful Space API. Contains methods to access any operations at a space * level, such as creating and reading entities contained in a...
Read more >
Angular & Contentful: Cannot create asset inside a space
The problem is that the Space object does not have a createAsset method. In fact, the only methods it has are locales ,...
Read more >
Unable to import - Synthetic - New Relic Explorers Hub
I am trying to call an external api for contentful, but finding errors in dynamic import call in ES5 and ES3. Here is...
Read more >
GetService - AWS Migration Hub Refactor Spaces
Gets an AWS Migration Hub Refactor Spaces service. Request Syntax. GET /environments/ EnvironmentIdentifier /applications/ ApplicationIdentifier /services/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found