René's URL Explorer Experiment


Title: Not able to send attachment with this API https://graph.microsoft.com/v1.0/me/sendMail · Issue #192 · microsoftgraph/msgraph-sdk-java · GitHub

Open Graph Title: Not able to send attachment with this API https://graph.microsoft.com/v1.0/me/sendMail · Issue #192 · microsoftgraph/msgraph-sdk-java

X Title: Not able to send attachment with this API https://graph.microsoft.com/v1.0/me/sendMail · Issue #192 · microsoftgraph/msgraph-sdk-java

Description: Getting 400 Bad Request with error body : "Property attachments in payload has a value that does not match schema." Trying to upload the attachment as shown below where message is initialized as Message message = new Message(); and fille...

Open Graph Description: Getting 400 Bad Request with error body : "Property attachments in payload has a value that does not match schema." Trying to upload the attachment as shown below where message is initialized as Me...

X Description: Getting 400 Bad Request with error body : "Property attachments in payload has a value that does not match schema." Trying to upload the attachment as shown below where message is initial...

Opengraph URL: https://github.com/microsoftgraph/msgraph-sdk-java/issues/192

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Not able to send attachment with this API https://graph.microsoft.com/v1.0/me/sendMail","articleBody":"Getting 400 Bad Request with error body : \"Property attachments in payload has a value that does not match schema.\"\r\n\r\nTrying to upload the attachment as shown below where message is initialized as \r\nMessage message = new Message(); \r\nand filled other message values like subject, body etc. It is working fine without attachment upload.\r\n\r\n\r\nfinal BaseAttachmentCollectionResponse response = new BaseAttachmentCollectionResponse();\r\n        try {\r\n            response.value = Arrays.asList(getFileAttachment());\r\n        }\r\n        catch (Exception e) {\r\n            e.printStackTrace();\r\n        }\r\n        message.attachments = new AttachmentCollectionPage(response, null);\r\n       \r\n    }\r\n  \r\n    private FileAttachment getFileAttachment() throws Exception{\r\n        FileAttachment fileAttachment = new FileAttachment();\r\n        fileAttachment.name = \"document.pdf\";\r\n        File pdfFile = new File(\"src/main/resources/document.pdf\");\r\n        InputStream fileStream = new FileInputStream(pdfFile);\r\n        fileAttachment.contentBytes = getByteArray(fileStream);\r\n        fileAttachment.oDataType = \"#microsoft.graph.fileAttachment\";\r\n        return fileAttachment;\r\n}\r\n\r\nAPI used to send the email is : https://graph.microsoft.com/v1.0/me/sendMail\r\nI am not sure where I am doing wrong.\r\n\r\nAppreciate your help here..\r\n\r\n\r\n","author":{"url":"https://github.com/poonamsehjwani","@type":"Person","name":"poonamsehjwani"},"datePublished":"2018-12-26T11:00:01Z","url":"https://github.com/microsoftgraph/msgraph-sdk-java/issues/192"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:722ec27e-d1da-eb55-a9b6-8a35fbe796c4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA346:3AB7CB:9FBD0:D7107:6B050A9A
html-safe-nonce0639f3c9aa8ba3e355b61488a35cec8baed5a2ffceff22df26bb6022996b122a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzQ2OjNBQjdDQjo5RkJEMDpENzEwNzo2QjA1MEE5QSIsInZpc2l0b3JfaWQiOiI2MzEwMzkxMjc1NjUyOTc1MjU4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9641a03fabb908007e018e5597eac511f9225e552dc5238b6b4b26245647fc37
hovercard-subject-tagissue:394143147
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoftgraph/msgraph-sdk-java/192/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ded565036040967be3cf8d46778b470eadb7b7602a5617a1e611cbcff6e78e53/microsoftgraph/msgraph-sdk-java/issues/192
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ded565036040967be3cf8d46778b470eadb7b7602a5617a1e611cbcff6e78e53/microsoftgraph/msgraph-sdk-java/issues/192
og:image:altGetting 400 Bad Request with error body : "Property attachments in payload has a value that does not match schema." Trying to upload the attachment as shown below where message is initialized as Me...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepoonamsehjwani
hostnamegithub.com
expected-hostnamegithub.com
None854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b
turbo-cache-controlno-preview
go-importgithub.com/microsoftgraph/msgraph-sdk-java git https://github.com/microsoftgraph/msgraph-sdk-java.git
octolytics-dimension-user_id17304259
octolytics-dimension-user_loginmicrosoftgraph
octolytics-dimension-repository_id103300409
octolytics-dimension-repository_nwomicrosoftgraph/msgraph-sdk-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id103300409
octolytics-dimension-repository_network_root_nwomicrosoftgraph/msgraph-sdk-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release220e980097d94ce616d5d11fbd5316d208e3fc93
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoftgraph/msgraph-sdk-java/issues/192#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmsgraph-sdk-java%2Fissues%2F192
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoftgraph%2Fmsgraph-sdk-java%2Fissues%2F192
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoftgraph%2Fmsgraph-sdk-java
Reloadhttps://github.com/microsoftgraph/msgraph-sdk-java/issues/192
Reloadhttps://github.com/microsoftgraph/msgraph-sdk-java/issues/192
Reloadhttps://github.com/microsoftgraph/msgraph-sdk-java/issues/192
microsoftgraphhttps://github.com/microsoftgraph
msgraph-sdk-javahttps://github.com/microsoftgraph/msgraph-sdk-java
Codehttps://github.com/microsoftgraph/msgraph-sdk-java
Issues107 (107)https://github.com/microsoftgraph/msgraph-sdk-java/issues
Pull requests23 (23)https://github.com/microsoftgraph/msgraph-sdk-java/pulls
Actionshttps://github.com/microsoftgraph/msgraph-sdk-java/actions
Projectshttps://github.com/microsoftgraph/msgraph-sdk-java/projects
Security and qualityhttps://github.com/microsoftgraph/msgraph-sdk-java/security
Insightshttps://github.com/microsoftgraph/msgraph-sdk-java/insights
https://github.com/microsoftgraph/msgraph-sdk-java
New issuehttps://github.com/login?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/192
New issuehttps://github.com/login?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/192
#202https://github.com/microsoftgraph/msgraph-sdk-java/pull/202
Not able to send attachment with this API https://graph.microsoft.com/v1.0/me/sendMailhttps://github.com/microsoftgraph/msgraph-sdk-java/issues/192#top
#202https://github.com/microsoftgraph/msgraph-sdk-java/pull/202
https://github.com/baywet
bughttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22bug%22
fixedhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22fixed%22
2.1.0https://github.com/microsoftgraph/msgraph-sdk-java/milestone/3
https://github.com/poonamsehjwani
Poonam Sehjwani (poonamsehjwani)https://github.com/poonamsehjwani
on Dec 26, 2018https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#issue-394143147
https://graph.microsoft.com/v1.0/me/sendMailhttps://graph.microsoft.com/v1.0/me/sendMail
NakulSabharwalhttps://github.com/NakulSabharwal
on Dec 28, 2018https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#event-2046783560
https://github.com/deepak2016
Deepak Agrawal (deepak2016)https://github.com/deepak2016
on Jan 9, 2019https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#issuecomment-452680408
Poonam Sehjwani (@poonamsehjwani)https://github.com/poonamsehjwani
https://github.com/harrbca
Brad Harrison (harrbca)https://github.com/harrbca
on Sep 26, 2019https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#issuecomment-535307711
NakulSabharwalhttps://github.com/NakulSabharwal
Mohamed Bilal A (bilalgce)https://github.com/bilalgce
NakulSabharwalhttps://github.com/NakulSabharwal
on Oct 17, 2019https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#event-2721690885
https://github.com/kavitha1051
kavitha1051https://github.com/kavitha1051
on Mar 3, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#issuecomment-593764769
https://github.com/kavitha1051
kavitha1051https://github.com/kavitha1051
on Mar 4, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#issuecomment-594470797
https://github.com/wendersonsouza
wendersonsouzahttps://github.com/wendersonsouza
on Jun 29, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#issuecomment-651263323
Deepak Agrawal (@deepak2016)https://github.com/deepak2016
https://user-images.githubusercontent.com/15347782/86037745-c63bd900-ba37-11ea-90a9-e07969011260.png
Michael Mainer (MIchaelMainer)https://github.com/MIchaelMainer
Mohamed Bilal A (bilalgce)https://github.com/bilalgce
on Jun 29, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#event-3494977463
Vincent Biret (baywet)https://github.com/baywet
2.0.1https://github.com/microsoftgraph/msgraph-sdk-java/milestone/3
on Sep 3, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#event-3724964589
Vincent Biret (baywet)https://github.com/baywet
on Sep 4, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#event-3729754935
https://github.com/baywet
Vincent Biret (baywet)https://github.com/baywet
on Sep 8, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#issuecomment-689007209
#202https://github.com/microsoftgraph/msgraph-sdk-java/pull/202
Vincent Biret (baywet)https://github.com/baywet
bughttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22bug%22
fixedhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22fixed%22
on Sep 8, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#event-3741920429
Vincent Biret (baywet)https://github.com/baywet
completedhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#202https://github.com/microsoftgraph/msgraph-sdk-java/pull/202
on Sep 9, 2020https://github.com/microsoftgraph/msgraph-sdk-java/issues/192#event-3746536231
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/192
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoftgraph/msgraph-sdk-java/issues/192
Vincent Biret (baywet)https://github.com/baywet
bughttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22bug%22
fixedhttps://github.com/microsoftgraph/msgraph-sdk-java/issues?q=state%3Aopen%20label%3A%22fixed%22
2.1.0https://github.com/microsoftgraph/msgraph-sdk-java/milestone/3
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.