GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — microsoft.graph.onPremisesPublishing wrong serialization · Issue #1542 · microsoftgraph/msgraph-sdk-python Open Labels status:waiting-for-triageAn issue that is yet to be reviewed or assignedAn issue that is yet to be reviewed or assignedtype:bugA broken experienceA broken experience DescriptionDescribe the bugSame bug as in the PHP SDK from 2025 microsoftgraph/msgraph-beta-sdk-php#356 from msgraph_beta import GraphServiceClient as BetaClient from msgraph_beta.generated.models.application import Application as Application from msgraph_beta.generated.models.on_premises_publishing import OnPremisesPublishing from msgraph_beta.generated.models.external_authentication_type import ExternalAuthenticationType request_body = Application( on_premises_publishing = OnPremisesPublishing( external_authentication_type=ExternalAuthenticationType.Passthru, internal_url="http://localhost:65001", external_url="https://whatever", is_http_only_cookie_enabled=False, is_on_prem_publishing_enabled=True, is_persistent_cookie_enabled=False, is_secure_cookie_enabled=False, is_state_session_enabled=False, is_translate_host_header_enabled=False, is_translate_links_in_body_enabled=False, is_backend_certificate_validation_enabled=False ), ) from kiota_serialization_json.json_serialization_writer import JsonSerializationWriter writer = JsonSerializationWriter() request_body.serialize(writer) print(writer.get_serialized_content().decode('utf-8')) Output: {"@odata.type": "#microsoft.graph.application", "onPremisesPublishing": {"externalAuthenticationType": "passthru", "externalUrl": "https://whatever", "internalUrl": "http://localhost:65001", "isBackendCertificateValidationEnabled": false, "isHttpOnlyCookieEnabled": false, "isOnPremPublishingEnabled": true, "isPersistentCookieEnabled": false, "isSecureCookieEnabled": false, "isStateSessionEnabled": false, "isTranslateHostHeaderEnabled": false, "isTranslateLinksInBodyEnabled": false}}
APIError
Code: 400
message: None
error: MainError(additional_data={}, code='InvalidJson_BadRequest', details=None, inner_error=InnerError(additional_data={}, client_request_id='xxxx', date=datetime.datetime(2026, 7, 10, 8, 49, 27), odata_type=None, request_id='xxxx'), message='Valid JSON content expected.', target=None)Expected behaviorproper error message and properly serialized data sent to the backend How to reproducesee above SDK Version1.59.0 Latest version known to work for scenario above?No response Known Workaroundsrequest_body = BetaApplication( additional_data = { "microsoft.graph.onPremisesPublishing": { "@odata.type": "#microsoft.graph.onPremisesPublishing", "externalAuthenticationType": "passthru", "internalUrl": "http://localhost:65001", "externalUrl": EXTERNAL_URL, "isHttpOnlyCookieEnabled": False, "isOnPremPublishingEnabled": True, "isPersistentCookieEnabled": False, "isSecureCookieEnabled": False, "isStateSessionEnabled": False, "isTranslateHostHeaderEnabled": False, "isTranslateLinksInBodyEnabled": False, "isBackendCertificateValidationEnabled": False } } ) Debug outputNo response ConfigurationNo response Other informationNo response Activity
MetadataMetadataAssigneesLabelsstatus:waiting-for-triageAn issue that is yet to be reviewed or assignedAn issue that is yet to be reviewed or assignedtype:bugA broken experienceA broken experience TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |