René's URL Explorer Experiment


Title: Issue · GitHub

Open Graph Title: Issue · graphql-java/graphql-java

X Title: Issue · graphql-java/graphql-java

Description: GraphQL Java implementation. Contribute to graphql-java/graphql-java development by creating an account on GitHub.

Open Graph Description: GraphQL Java implementation. Contribute to graphql-java/graphql-java development by creating an account on GitHub.

X Description: GraphQL Java implementation. Contribute to graphql-java/graphql-java development by creating an account on GitHub.

Opengraph URL: https://github.com/graphql-java/graphql-java

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"regression in GraphQLScalarType Coercing parseValue in 18.1","articleBody":"**Describe the bug**\r\n\r\nI just hit a bug in production when deploying an upgrade from 18.0 to 18.1 that I think relates to some of the work in resolving https://github.com/graphql-java/graphql-java/issues/2811\r\n\r\nI noticed the following in my production logs \r\n\r\n```\r\n...\r\nCaused by: graphql.schema.CoercingParseValueException: Variable 'memberDues' has an invalid value: Failed to parse input value 2022-05-16T19:52:37Z as ZonedDateTime\r\n...\r\n\r\nCaused by: java.lang.IllegalArgumentException: Unexpected input type: class java.time.ZonedDateTimeat com.meetup.graphql.wiring.CustomScalars.parseDateTimeValue(CustomScalars.java:38)at com.meetup.graphql.wiring.CustomScalars$1.parseValue(CustomScalars.java:71)at com.meetup.graphql.wiring.CustomScalars$1.parseValue(CustomScalars.java:63)at graphql.execution.ValuesResolver.externalValueToInternalValueForScalar(ValuesResolver.java:578)at graphql.execution.ValuesResolver.externalValueToInternalValue(ValuesResolver.java:510)at graphql.execution.ValuesResolver.externalValueToInternalValue(ValuesResolver.java:498)at graphql.execution.ValuesResolver.externalValueToInternalValueForObject(ValuesResolver.java:565)at graphql.execution.ValuesResolver.externalValueToInternalValue(ValuesResolver.java:517)at graphql.execution.ValuesResolver.externalValueToInternalValueForObject(ValuesResolver.java:565)at graphql.execution.ValuesResolver.externalValueToInternalValue(ValuesResolver.java:517)at graphql.execution.ValuesResolver.externalValueToInternalValue(ValuesResolver.java:498)at graphql.execution.ValuesResolver.externalValueToInternalValueForVariables(ValuesResolver.java:410)\r\n```\r\n\r\nnote that the string `2022-05-16T19:52:37Z` is actually parsable as ZonedDateTime however I believe the issue is previously `parseValue` was receiving either a String or a StringValue and after this upgrade it started receiving the value that I was attempting to coerce it into, in this case a ZonedDateTime\r\n\r\nis this new expected behavior or was this previous expected behavior that was underspecified until now?\r\n\r\nHere's an abbreviated version of a custom scaler for parsing out ZonedDateTime values which is roughly based on the [docs](https://www.graphql-java.com/documentation/scalars/#example-implementation)\r\n\r\n```java\r\n  static ZonedDateTime parseDateTimeValue(Object input) {\r\n    try {\r\n      if (input instanceof StringValue) {\r\n        return ZonedDateTime.parse(((StringValue) input).getValue());\r\n      } else if (input instanceof String) {\r\n        return ZonedDateTime.parse((String) input);\r\n      } else throw new IllegalArgumentException(\"Unexpected input type: \" + input.getClass()); \u003c-- change in behavior causes this line to get evaluated\r\n    } catch (Exception e) {\r\n      throw new CoercingParseValueException(\r\n          \"Failed to parse input value \" + input + \" as ZonedDateTime\", e);\r\n    }\r\n  }\r\n  \r\npublic static final GraphQLScalarType DateTime =\r\n      GraphQLScalarType.newScalar()\r\n          .name(\"DateTime\")\r\n          .description(\"A custom scalar that handles timestamps\")\r\n          .coercing(\r\n              new Coercing\u003cZonedDateTime, String\u003e() {\r\n                @Override\r\n                public String serialize(Object dataFetcherResult) {\r\n                  return // doesnt matter\r\n                }\r\n\r\n                @Override\r\n                public ZonedDateTime parseValue(Object input) {\r\n                  return parseDateTimeValue(input);\r\n                }\r\n\r\n                @Override\r\n                public ZonedDateTime parseLiteral(Object input) {\r\n                  return // doesnt matter\r\n                }\r\n              })\r\n          .build();\r\n```\r\n\r\n**To Reproduce**\r\nPlease provide a code example or even better a test to reproduce the bug.\r\n\r\nsee above\r\n","author":{"url":"https://github.com/softprops","@type":"Person","name":"softprops"},"datePublished":"2022-05-16T20:35:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/2819/graphql-java/issues/2819"}

route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:63c64875-7303-49f0-41b3-2cf22c05057a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA474:3734F2:18D431:21B1A6:6A5FEA74
html-safe-nonceb5426deb7d9280e2e0e3457e2254c69a1e19a7d92e3fdbe390746b1bb94deb70
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDc0OjM3MzRGMjoxOEQ0MzE6MjFCMUE2OjZBNUZFQTc0IiwidmlzaXRvcl9pZCI6IjgyNzkwNzgzMDQxNDc4MjczMTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf03fbd141123784b0dc5dc8381b0ec9154b987096e81a9e8fbf0933114a80dda
hovercard-subject-tagrepository:38602457
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/graphql-java/graphql-java/issues/2819
twitter:imagehttps://opengraph.githubassets.com/bc7bc6e813395e81ad82c20f716a6534dff9c2fc97964b6ef168bd75b4d8e140/graphql-java/graphql-java
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bc7bc6e813395e81ad82c20f716a6534dff9c2fc97964b6ef168bd75b4d8e140/graphql-java/graphql-java
og:image:altGraphQL Java implementation. Contribute to graphql-java/graphql-java development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneba296ecd3a3521238fe43b3b3b08cc09207ddc21173e16ee656db03803de8e2b
turbo-cache-controlno-cache
go-importgithub.com/graphql-java/graphql-java git https://github.com/graphql-java/graphql-java.git
octolytics-dimension-user_id14289921
octolytics-dimension-user_logingraphql-java
octolytics-dimension-repository_id38602457
octolytics-dimension-repository_nwographql-java/graphql-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id38602457
octolytics-dimension-repository_network_root_nwographql-java/graphql-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
release6e50fb37e29e4aa0df6386cb485e58b0e3ca97ab
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/graphql-java/graphql-java/issues/2819#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fissues%2F2819
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgraphql-java%2Fgraphql-java%2Fissues%2F2819
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=graphql-java%2Fgraphql-java
Reloadhttps://github.com/graphql-java/graphql-java/issues/2819
Reloadhttps://github.com/graphql-java/graphql-java/issues/2819
Reloadhttps://github.com/graphql-java/graphql-java/issues/2819
Please reload this pagehttps://github.com/graphql-java/graphql-java/issues/2819
graphql-java https://github.com/graphql-java
graphql-javahttps://github.com/graphql-java/graphql-java
Notifications https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Fork 1.1k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Star 6.2k https://github.com/login?return_to=%2Fgraphql-java%2Fgraphql-java
Code https://github.com/graphql-java/graphql-java
Issues 26 https://github.com/graphql-java/graphql-java/issues
Pull requests 12 https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality 0 https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
Code https://github.com/graphql-java/graphql-java
Issues https://github.com/graphql-java/graphql-java/issues
Pull requests https://github.com/graphql-java/graphql-java/pulls
Discussions https://github.com/graphql-java/graphql-java/discussions
Actions https://github.com/graphql-java/graphql-java/actions
Projects https://github.com/graphql-java/graphql-java/projects
Wiki https://github.com/graphql-java/graphql-java/wiki
Security and quality https://github.com/graphql-java/graphql-java/security
Insights https://github.com/graphql-java/graphql-java/pulse
#2836https://github.com/graphql-java/graphql-java/pull/2836
regression in GraphQLScalarType Coercing parseValue in 18.1https://github.com/graphql-java/graphql-java/issues/2819#top
#2836https://github.com/graphql-java/graphql-java/pull/2836
https://github.com/softprops
softpropshttps://github.com/softprops
on May 16, 2022https://github.com/graphql-java/graphql-java/issues/2819#issue-1237688136
#2811https://github.com/graphql-java/graphql-java/issues/2811
docshttps://www.graphql-java.com/documentation/scalars/#example-implementation
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

Viewport: width=device-width


URLs of crawlers that visited me.