Forum Discussion

N1vSega1's avatar
N1vSega1
Regular Visitor
1 year ago
Solved

Getting 403 when embedding report on metadata requests

Hi, I'm getting multiple 403 responses, when embedding my report.
This doesn't seem to affect the functionality.
What could be the cause of this?


This is the config sent to the embed function:

 

 

export const embeddedReportConfig: models.IReportEmbedConfiguration = {
  type: 'report',
  tokenType: models.TokenType.Embed,
  accessToken: 'YourAccessToken',
  datasetBinding: null,
  embedUrl: '',
  id: '',
  permissions: models.Permissions.All,
  viewMode: models.ViewMode.View,
  settings: {
    hideErrors: true,
    filterPaneEnabled: true,
    navContentPaneEnabled: false,
    panes: {
      pageNavigation: {
        visible: false,
      },
      filters: {
        expanded: false, // Hide filters pane
      },
    },
    localeSettings: {
      language: 'en',
      formatLocale: getLocaleForPowerBi(),
    },
  },
};

 

 

 

  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi N1vSega1 

    Thank you for reaching out to us on the Microsoft Fabric Community Forum.

    Based on the error message you provided, please consider the following suggestions to resolve the issue:

    • The access token might be invalid or expired.

    Please generate a new access token and update the accessToken field in your configuration accordingly.

    • The permissions associated with the access token may be insufficient.

    Verify that the token has the necessary permissions to access the metadata.

    • The embedUrl and id fields may be incorrect or missing.

    Ensure these fields are populated with the correct values for the report being embedded.

    • There may be restrictions on the API endpoint being accessed.

    Check for any IP restrictions or other security settings that might be blocking access.

    • Certain settings in the configuration might be causing the issue.

    Verify that all configuration settings are accurate and do not conflict with one another.

    If you need any further assistance or have any questions, please feel free to contact us.

     

    If this solution helps, please consider giving us Kudos and accepting it as the solution so that it may assist other members in the community.

     

    Best regards,
    Shamili.v

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi N1vSega1 

    Thank you for reaching out to us on the Microsoft Fabric Community Forum.

    Based on the error message you provided, please consider the following suggestions to resolve the issue:

    • The access token might be invalid or expired.

    Please generate a new access token and update the accessToken field in your configuration accordingly.

    • The permissions associated with the access token may be insufficient.

    Verify that the token has the necessary permissions to access the metadata.

    • The embedUrl and id fields may be incorrect or missing.

    Ensure these fields are populated with the correct values for the report being embedded.

    • There may be restrictions on the API endpoint being accessed.

    Check for any IP restrictions or other security settings that might be blocking access.

    • Certain settings in the configuration might be causing the issue.

    Verify that all configuration settings are accurate and do not conflict with one another.

    If you need any further assistance or have any questions, please feel free to contact us.

     

    If this solution helps, please consider giving us Kudos and accepting it as the solution so that it may assist other members in the community.

     

    Best regards,
    Shamili.v

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi N1vSega1 

    May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

    Thank you.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi N1vSega1 

    I wanted to check if you had the opportunity to review the information provided. Please feel free to reach us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
    Thank you.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi N1vSega1 
    I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
    Thank you