Error in Querying BIM 360 project attribute - autodesk-forge

I'm currently using an AWS lambda function to automate the creation of a BIM 360 project by using multiple BIM 360 API endpoints.
It's been working fine, but I've just noticed that it stopped working, failing to access GET projects/:project_id endpoint. My code accesses each BIM 360 project's job_number attribute to filter duplicated projects by using job_number. And the code is failing at getting the response of the GET projects/:project_id request.
Has there been any change in the API recently? Thank you in advance.

from the latest reply, it looks you hit rate limit. If am correct, the response error code is 429. Each category API has restriction of rate limit. e.g. This is rate limit of Data Management API
https://forge.autodesk.com/en/docs/data/v2/developers_guide/rate-limiting/dm-rate-limits/
And this is BIM360 API:
https://forge.autodesk.com/en/docs/bim360/v1/overview/rate-limits/
So, you will need to set some delays of each call to meet the rate, or use some async management methods such as async-pool in Node.js to control the calls rate or every minute.

Related

Forge Issues API giving 500 error, the API was working fine till last week now it is showing issues

I am getting 500(Internal Server Error) in BIM 360 issues APIs since this week which was working fine till last week
APIs are :
"https://developer.api.autodesk.com/issues/v1/containers/+containerId+/quality-issues?page[limit]=100". "https://developer.api.autodesk.com/issues/v1/containers/+containerId+/ng-issue-types?include=subtypes".
But in case of Construction Cloud APIs for BIM 360 issues are working fine.
ChangeLog of BIM 360 issues are also not showing any changes.
Can anyone please guide me what is happening here as our Live APIs are based on BIM 360 API ?
They are moving to a new platform
To retrieve issues for BIM360 and ACC you need to use different endpoints.

Search for project in Forge BIM 360 API

We have over 3000 projects in our BIM 360 account and need to be able to search for a specific project by name. Currently we are using the GET projects endpoint in the Forge BIM 360 API to create a list of projects and querying the list to find the project. This was working well for a while, but due to a limit of 100 projects returned by the endpoint we have to make multiple calls using the offset parameter. With 3000 projects this requires 30 requests, and we are starting to see a performance hit in some of our applications, which will only get worse over time as we add more projects. Is there a way to call the GET projects endpoint with a filter on project name?
I believe you can call /project/v1/hubs/:hub_id/projects with page[limit]=200, but unfortunate we don't have a filter by name.

AutoDesk API for List of Fusion 360 Files

Using the Autodesk Forge Auth API, I can get a bearer token for my app and I can get the ID of the user. I want to get a list of Fusion 360 files that the user owns. How can I do this? It seems like it would be part of the Data Management API, but I can't find it.
I use the forge api for data management to ask for the hubs for a user. I get a response that has a 200 status, but there is nothing in the response - no data and nothing like what is in the example.
Any ideals as to how to get those files?
If the GET Hubs response is empty, most likely that user don't have any hub. Is there any warning or error on the response body?
And this tutorial should help you get started, or try this live sample (source in .NET)

Autodesk Forge 403 When Trying to Retrieve Issues

I'm following the Issue Retrieval tutorial: https://forge.autodesk.com/en/docs/bim360/v1/tutorials/retrieve-issues/
After getting a token I'm able to retrieve my hubs, then my projects, but when it comes time to retrieve issues in a project I am getting a 403 forbidden.
Trying to retrieve issues with the following URL:
https://developer.api.autodesk.com/issues/v1/containers/[issue_container_id]/issues
where [issue_container_id] is retrieved from data[0].relationships.issues.data.id from the https://developer.api.autodesk.com/project/v1/hubs/[hub_id]/projects response
My auth token scope is data:read and I've even tried with data:read and data:write since I was initially trying to write an issue, but also got a 403.
My Forge app has access to BIM 360 API, Data Management API, and WebHook API.
My BIM 360 integration gives the Forge app acess to BIM 360 Account Admin and Document management.
According to our engineering team, BIM360 Issue APIs support three-legged token only currently. Apologizing for the confusion, the tutorial will be updated soon.

Google Maps Engine - This resource is too large to be accessed via this API call

We have Google Maps Engine account. I recently uploaded a shape file which has approximately 179,000 features.
Find below the exact stats for the Table
Feature count: 178956
Bad feature count: 0
Vertex count: 4817776
Polygon count: 179058
Multi-polygon count: 102
I am trying to perform an intersect query as following
"https://www.googleapis.com/mapsengine/v1/tables/{tableid}/features?where=ST_INTERSECTS(geometry,ST_POINT(55.300153,25.256426))"
But it throws the following error
error: {errors: [{domain: "usageLimits",reason: "limitExceeded",message: "This resource is too large to be accessed via this API call."}],code: 403,message: "This resource is too large to be accessed via this API call."}
To make sure if I am using the OAuth correctly, I change the tableID and perform the same query on another table which has 1500 records, and I get the proper results.
Questions
If I have properly generated Access Token using Google OAuth Client, do I still need the API Key to access the private table?
Does Google Maps Engine supports query for features in table with records greater than 100K?
I have read the Google documentation for this error and Maps Engine limitations at following URL [https://developers.google.com/maps-engine/documentation/limits][1] . It says that Dynamic capacity for feature requests if greater than 100K is not supported. Is this limit applicable only for query per second (QPS) or any request?
Any suggestions to use intersect query for high volume of GIS data ?
Thanks in advance for your help.
No. The API key is only used to access public tables.
GME API limits are detailed at:
https://developers.google.com/maps-engine/documentation/limits#capacity
Examples of how to use the intersects function can be found at:
https://developers.google.com/maps-engine/documentation/read#geographic_restrictions
If there's something specifically that you need additional help with don't be afraid to raise a support case at:
http://google.com/enterprise/portal