Skip to content
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

Got error by GetWebUrl method of models.ChatMessageable in msgraph-sdk-go/teams #779

Closed
hayatoy98 opened this issue Oct 4, 2024 · 2 comments
Labels
Status no recent activity status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:bug A broken experience

Comments

@hayatoy98
Copy link

Describe the bug

I am trying to get the value in webUrl field by using the receiver method GetWebUrl.
It seems that panic occurred when m.GetBackingStore().Get("webUrl") does inside GetWebUrl.
Even though I checked the response from graph api http endpoint by Postman and it certainly has the value in webUrl field.

Expected behavior

This is the expectation that we can get the value of webUrl field when we use GetWebUrl method.

How to reproduce

Here is the step

  1. sends the message in Teams
  2. In codes, gets models.ChatMessageable using this Chats().ByChatId(sample-channel-id).Messages().ByChatMessageId(sample-message-id).Get(ctx, nil) method.
  3. In codes, tries to get the value by models.ChatMessageable.GetWebUrl() method

SDK Version

v1.47.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_
@hayatoy98 hayatoy98 added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Oct 4, 2024
@andrueastman
Copy link
Member

Thanks for raising this @hayatoy98

According to the reference below, the code expects the property to be a string.

GetWebUrl()(*string)

Out of curiosity, are you able to share the sample response and stack trace as well to help understand the issue better?

@andrueastman andrueastman added status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels Oct 8, 2024
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status no recent activity status:waiting-for-author-feedback Issue that we've responded but needs author feedback to close type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

2 participants