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

Error When Using period = "quarters" in sfa_load_statements #65

Open
snvv opened this issue Jan 11, 2025 · 0 comments
Open

Error When Using period = "quarters" in sfa_load_statements #65

snvv opened this issue Jan 11, 2025 · 0 comments

Comments

@snvv
Copy link

snvv commented Jan 11, 2025

Description

I attempted to use the sfa_load_statements() function with the period = "quarters" parameter, but encountered the following error:

Code Example

sfa_load_statements(
  ticker = "AAPL",
  id = NULL,
  statements = "pl",
  period = "quarters",
  fyear = NULL,
  start = NULL,
  end = NULL,
  ttm = FALSE,
  asreported = TRUE,
  api_key = getOption("sfa_api_key"),
  cache_dir = getOption("sfa_cache_dir")
)

Error Message

Error: SimFin API Error 500: {"timestamp":"2025-01-11T09:44:19.234998239","status":"500","error":"Failed to convert 
value of type \u0027java.lang.String\u0027 to required type \u0027java.util.List\u0027; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [@io.swagger.v3.oas.annotations.Parameter @org.springframework.web.bind.annotation.RequestParam simfin.library.domain.enums.Period] for value \u0027quarters\u0027; nested exception is java.lang.IllegalArgumentException: No enum constant simfin.library.domain.enums.Period.quarters","message":"Failed to convert value of type \u0027java.lang.String\u0027 to required type \u0027java.util.List\u0027; nested exception is org.springframework.core.convert.ConversionFailedException: Failed to convert from type [java.lang.String] to type [@io.swagger.v3.oas.annotations.Parameter @org.springframework.web.bind.annotation.RequestParam simfin.library.domain.enums.Per

Question

Is there something I can do to resolve this issue? It seems the API is unable to process the period = "quarters" parameter.

Environment

  • SimFinR Version: 1.0.0
  • R Version: 4.4.2
  • Operating System: linux - debian sid

Thank you for your help!

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant