Title: Timestamp Parsing Error Trying to List Operators · Issue #19 · Reloadly/reloadly-sdk-java · GitHub
Open Graph Title: Timestamp Parsing Error Trying to List Operators · Issue #19 · Reloadly/reloadly-sdk-java
X Title: Timestamp Parsing Error Trying to List Operators · Issue #19 · Reloadly/reloadly-sdk-java
Description: Describe the bug Trying to get Airtime Operators via the Java SDK is throwing an exception trying to parse promotion timestamps. Expected Behavior It should be able to parse whatever date the API is returning. Current Behavior It is thro...
Open Graph Description: Describe the bug Trying to get Airtime Operators via the Java SDK is throwing an exception trying to parse promotion timestamps. Expected Behavior It should be able to parse whatever date the API i...
X Description: Describe the bug Trying to get Airtime Operators via the Java SDK is throwing an exception trying to parse promotion timestamps. Expected Behavior It should be able to parse whatever date the API i...
Opengraph URL: https://github.com/Reloadly/reloadly-sdk-java/issues/19
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Timestamp Parsing Error Trying to List Operators","articleBody":"\u003c!--- Provide a general summary of the issue in the Title above --\u003e\r\n\r\n## Describe the bug\r\n\u003c!--- A clear and concise description of what the bug is --\u003e\r\n\r\nTrying to get Airtime Operators via the Java SDK is throwing an exception trying to parse promotion timestamps.\r\n\r\n## Expected Behavior\r\n\u003c!--- Tell us what should happen --\u003e\r\n\r\nIt should be able to parse whatever date the API is returning.\r\n\r\n## Current Behavior\r\n\u003c!--- Tell us what happens instead of the expected behavior --\u003e\r\n\r\nIt is throwing an error at some of the dates the API is returning.\r\n\r\n\u003c!--- Include full errors, uncaught exceptions, stack traces, and relevant logs --\u003e\r\n\u003c!--- To turn on SDK logging, follow instructions here: https://github.com/reloadly/reloadly-sdk-java/blob/master/reloadly-java-sdk-airtime/USAGE.md#logging-request--response --\u003e\r\n\u003c!--- If service responses are relevant, please include logs --\u003e\r\n\r\n`com.fasterxml.jackson.databind.JsonMappingException: java.text.ParseException: Unparseable date: \"2024-07-08T04:01:00Z\" (through reference chain: software.reloadly.sdk.core.dto.response.Page[\"content\"]-\u003ejava.util.ArrayList[136]-\u003esoftware.reloadly.sdk.airtime.dto.response.Operator[\"promotions\"]-\u003ejava.util.HashSet[0]-\u003esoftware.reloadly.sdk.airtime.dto.response.Promotion[\"startDate\"])`\r\n\r\n## Steps to Reproduce\r\n\u003c!--- Provide a self-contained, concise snippet of code that can be used to reproduce the issue --\u003e\r\n\u003c!--- For more complex issues provide a repo with the smallest sample that reproduces the bug --\u003e\r\n\u003c!--- Avoid including business logic or unrelated code, it makes diagnosis more difficult --\u003e\r\n\r\n`var airtimeAPI = AirtimeAPI.builder()\r\n .clientId(\"your-client-id\")\r\n .clientSecret(\"your-client-secret\")\r\n .environment(Environment.LIVE)\r\n .build();\r\n\r\nvar filter = new OperatorFilter()\r\n .includeBundles(true)\r\n .includeData(true)\r\n .includeFixedDenominationType(true)\r\n .includePin(false)\r\n .includeRangeDenominationType(true)\r\n .includeSuggestedAmounts(true)\r\n .includeSuggestedAmountsMap(true)\r\n .withPage(1, 200);\r\n\r\nvar page = airtimeAPI.operators().list(filter).execute();`\r\n\r\n## Possible Solution\r\n\u003c!--- Not required, but suggest a fix/reason for the bug --\u003e\r\n\r\nSwitch the deserializer to use DateTimeFormatter with optional sections.\r\n\r\n## Context\r\n\u003c!--- How has this issue affected you? What are you trying to accomplish? --\u003e\r\n\u003c!--- Providing context helps us come up with a solution that is most useful in the real world --\u003e\r\n\r\nWe run a nightly import of Operators into our system to use throughout the day. This import has been failing for days now, so our Operator list is growing outdated.\r\n\r\n## Your Environment\r\n\u003c!--- Include as many relevant details about the environment where the bug was discovered --\u003e\r\n* Reloadly Java SDK version used:\r\n* JDK version used:\r\n* Operating System and version:\r\n\r\nReloadly SDK 1.0.2\r\nCorretto 17 \r\nAmazon Linux 2022","author":{"url":"https://github.com/FE-hallen","@type":"Person","name":"FE-hallen"},"datePublished":"2024-09-23T14:02:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/19/reloadly-sdk-java/issues/19"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:41b4a983-61ac-d63d-07d9-f1b5d18d5621 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96C0:58051:3D3FBF:4E33D9:6991D347 |
| html-safe-nonce | 3d0eeef9affd16132d55abf1f9ab74282a75dc4ebfd9ff3eb66cc3338ef8f234 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkMwOjU4MDUxOjNEM0ZCRjo0RTMzRDk6Njk5MUQzNDciLCJ2aXNpdG9yX2lkIjoiODc5NzIyNTk4OTEwNzIwOTAzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5e86023ed71b73f9ef7d2d82871de675a2737f2a06b70d7a968ee81dd36d7e72 |
| hovercard-subject-tag | issue:2542761712 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Reloadly/reloadly-sdk-java/19/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bc88a407b75311fac417a2b19535e3a1028da90a22c3fe7d77fc9f5adcf80cd2/Reloadly/reloadly-sdk-java/issues/19 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bc88a407b75311fac417a2b19535e3a1028da90a22c3fe7d77fc9f5adcf80cd2/Reloadly/reloadly-sdk-java/issues/19 |
| og:image:alt | Describe the bug Trying to get Airtime Operators via the Java SDK is throwing an exception trying to parse promotion timestamps. Expected Behavior It should be able to parse whatever date the API i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FE-hallen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/Reloadly/reloadly-sdk-java git https://github.com/Reloadly/reloadly-sdk-java.git |
| octolytics-dimension-user_id | 27449653 |
| octolytics-dimension-user_login | Reloadly |
| octolytics-dimension-repository_id | 341005574 |
| octolytics-dimension-repository_nwo | Reloadly/reloadly-sdk-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 341005574 |
| octolytics-dimension-repository_network_root_nwo | Reloadly/reloadly-sdk-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width