-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failing to query for report #97
Comments
Hi @GoneUp , First off, I believe the scope should be The URI template library we use under the covers seems to have a bug, and I've opened an issue to engage with them. Then, I believe the OpenAPI description is wrong at multiple levels <Function Name="getOffice365ActiveUserDetail" IsBound="true" IsComposable="true">
<Parameter Name="bindingParameter" Type="graph.reportRoot" />
<Parameter Name="period" Type="Edm.String" Nullable="false" Unicode="false" />
<ReturnType Type="graph.report" Nullable="false" />
</Function> Should give us at least two path items:
@darrelmiller could you confirm on the second endpoint please? I might be misinterpreting OData conventions. This most likely has been fixed in the conversion library (complex properties expansion, composable functions expansion), but our generation pipeline is not taking advantage of those updates just yet. For the fix to take effect, we'll need to inject a read restriction on the function as well so it expands the complex type properties. Alternatively the OpenAPI description should describe a second operation for application/octect-stream (not sure how the conversion process would insert that?) and kiota, the generator behind that sdk, should add support for multiple operations as captured in this issue All of that is fairly advanced internal works of how we generate the SDKs, and it's unlikely we'll be able to solve for all those things shortly. As a work around, you can take any request builder that returns byte[] on a get method, and new it up passing the URL directly. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Okay, thanks for taking a deep look into this. I will try to implement the approach mentioned when the new release is there. |
Update, the bug about using raw urls with request builders has been fixed. We're still working on supporting the different endpoint types in the generator however. go get -u github.com/microsoftgraph/[email protected] |
update on the single quote issue, it took longer than expected because the actual RFC contained a mistake. After clearing this with the authors we're in the process of issuing an errata for the RFC and I've opened a PR on the uri template lib I'm still waiting to hear from @darrelmiller on the URL conventions part (my first comment on this thread) |
update: the PR in the uri template library has been merged, and I put together #138 to address this aspect. |
This metadata should give
However, the metadata doesn't match the behavior of the APIs in most cases. In reality, the first URL returns a redirect and a CSV or JSON payload is returned directly. I have not found an API that actually implements the We have been asking the reporting team to update their report descriptions to this style to accurately reflect the API behavior:
However, not all of the report descriptions have been updated yet. |
thanks for chiming in @darrelmiller . Could we leverage XSLT to patch the ones that are still wrong for the time being and unlock customers? |
@baywet That's probably the easiest path forward |
thanks, logged this issue in the metadata repo so we "fix it in post". Once this is addressed the loop should be complete for this issue. |
To add to the conversation, the service team recently published this blog post. https://devblogs.microsoft.com/microsoft365dev/changes-to-microsoft-365-apps-usage-reports-api-in-microsoft-graph/ |
update: the metadata has been fixed, we expect the fix to show up in the SDK by the end of next week. |
I believe this has been addressed via #310 and recent API changes. Closing. Don't hesitate to comment if something is still missing. |
Hi,
I wanted to test if I could use this library for one usecase and stumbled over an error.
After debugging it seems that the uri-template parser does not like the character
'
which is present in the URI.URI is set here and looks like this
"{+baseurl}/reports/microsoft.graph.getOffice365ActiveUserDetail(period='{period}')"
Template parsing happens here
The error I get is this one
Error getting the report: uritemplate:72:invalid literals
Code
BR
Henry
The text was updated successfully, but these errors were encountered: