Running 'testthat.R' [11s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(RSocrata)
  > 
  > test_check("RSocrata")
  2021-01-17 02:20:10.457 getResponse: Error in httr GET: 503  http://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  2021-01-17 02:20:10.982 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/9szf-fbd4.json?$order=:id  
  2021-01-17 02:20:11.713 getResponse: Error in httr GET: 503  https://data.cityofnewyork.us/resource/qcdj-rwhu.json?$order=:id  
  2021-01-17 02:20:12.159 getResponse: Error in httr GET: 503  http://data.cityofchicago.org/resource/y93d-d9e3.csv?%24order=debarment_date  
  2021-01-17 02:20:12.636 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/4h87-zdcp.csv?$order=:id  
  2021-01-17 02:20:12.779 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/xzkq-xp2w.csv?$order=:id  
  2021-01-17 02:20:12.909 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  2021-01-17 02:20:13.424 getResponse: Error in httr GET: 503  https://odn.data.socrata.com/resource/pvug-y23y.csv?$order=:id  
  2021-01-17 02:20:15.070 RSocrata:::getResponse: Error in httr GET: 503  https://data.healthcare.gov/resource/enx3-h2qp.csv?$limit=1000
  2021-01-17 02:20:15.189 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  2021-01-17 02:20:15.308 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  2021-01-17 02:20:15.429 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.json?$order=:id  
  2021-01-17 02:20:15.556 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.json?$order=:id  
  2021-01-17 02:20:15.693 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.json?$order=:id  
  2021-01-17 02:20:15.949 getResponse: Error in httr GET: 503  http://soda.demo.socrata.com/resource/4334-bgaj.csv?%24select=region&$order=:id  
  2021-01-17 02:20:16.208 getResponse: Error in httr GET: 503  http://data.cityofchicago.org/resource/j8vp-2qpg.json?$order=:id  
  2021-01-17 02:20:16.327 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  2021-01-17 02:20:16.449 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  2021-01-17 02:20:16.576 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  2021-01-17 02:20:16.918 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/kn9c-c2s2.json?$order=:id  
  2021-01-17 02:20:17.424 getResponse: Error in httr GET: 503  https://data.smgov.net/resource/ia9m-wspt.json?%24where=incident_date%3E%3D%272011-01-01%27%20AND%20incident_date%3C%272011-01-15%27&$order=:id  
  2021-01-17 02:20:17.663 getResponse: Error in httr GET: 503  http://soda.demo.socrata.com/resource/4334-bgaj.json?%24LIMIT=500&$order=:id  
  2021-01-17 02:20:17.781 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/kn9c-c2s2.json?$order=:id  
  2021-01-17 02:20:17.899 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/kn9c-c2s2.json?%24order=hardship_index  
  2021-01-17 02:20:18.017 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/kn9c-c2s2.json?%24limit=50&$order=:id  
  2021-01-17 02:20:18.135 getResponse: Error in httr GET: 503  https://data.cityofchicago.org/resource/wrvz-psew.csv?%24select=count%28trip_id%29&%24where=trip_start_timestamp%20between%20%272016-04-01T00%3A00%3A00%27%20and%20%272016-04-05T00%3A00%3A00%27  
  2021-01-17 02:20:18.328 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  2021-01-17 02:20:18.455 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  2021-01-17 02:20:18.589 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  2021-01-17 02:20:18.713 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  2021-01-17 02:20:18.830 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  2021-01-17 02:20:18.951 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  2021-01-17 02:20:19.070 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24where=magnitude%20%3E%203.0&%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  2021-01-17 02:20:19.189 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  2021-01-17 02:20:19.310 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?%24%24app_token=ew2rEMuESuzWPqMkyPfOSGJgE&$order=:id  
  2021-01-17 02:20:19.429 getResponse: Error in httr GET: 503  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$order=:id  
  2021-01-17 02:20:19.780 getResponse: Error in httr GET: 503  https://data.smgov.net/resource/xx64-wi4x.json?%24select=incident_number%2Cincident_date%2Ccall_type%2Creceived_time%2Ccleared_time%2Ccensus_tract_2010_geoid&%24where=incident_date%3D%272016-08-27%27%20and%20census_tract_2010_geoid%20is%20not%20null&$order=:id  
  == Skipped tests ===============================================================
  * See Issue #174 (4)
  
  == Warnings ====================================================================
  -- Warning (test-all.R:403:3): API Conflict ------------------------------------
  https://soda.demo.socrata.com/resource/4334-bgaj.csv?$$app_token=ew2rEMuESuzWPqMkyPfOSGJgE already contains an API token in url. Ignoring token supplied in the `app_token=` argument.
  Backtrace:
   1. RSocrata::read.socrata(...) test-all.R:403:2
   2. RSocrata::validateUrl(url, app_token)
  -- Warning (test-all.R:411:3): readAPIConflictHumanReadable --------------------
  https://soda.demo.socrata.com/dataset/USGS-Earthquake-Reports/4334-bgaj?$$app_token=ew2rEMuESuzWPqMkyPfOSGJgE already contains an API token in url. Ignoring token supplied in the `app_token=` argument.
  Backtrace:
   1. RSocrata::read.socrata(...) test-all.R:411:2
   2. RSocrata::validateUrl(url, app_token)
  
  == Failed tests ================================================================
  -- Error (test-all.R:17:3): read Socrata CSV is compatible with posixify -------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("http://soda.demo.socrata.com/resource/4334-bgaj.csv") test-all.R:17:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:24:3): read Socrata JSON is compatible with posixify (issue 85) --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://soda.demo.socrata.com/resource/9szf-fbd4.json") test-all.R:24:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:30:3): read Socrata JSON that uses ISO 8601 but does not specify subseconds --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://data.cityofnewyork.us/resource/qcdj-rwhu.json") test-all.R:30:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:60:3): Calendar Date Short --------------------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("http://data.cityofchicago.org/resource/y93d-d9e3.csv?$order=debarment_date") test-all.R:60:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:78:3): Date is not entirely NA if the first record is bad (issue 68) --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://data.cityofchicago.org/resource/4h87-zdcp.csv") test-all.R:78:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:104:3): converts money fields to numeric from Socrata -----
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://data.cityofchicago.org/Administration-Finance/Current-Employee-Names-Salaries-and-Position-Title/xzkq-xp2w") test-all.R:104:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:112:3): read Socrata CSV as default -----------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.csv") test-all.R:112:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:123:3): read Socrata CSV from New Backend (NBE) endpoint --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://odn.data.socrata.com/resource/pvug-y23y.csv") test-all.R:123:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:146:3): Warn instead of fail if X-SODA2-* headers are missing --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. +-testthat::expect_null(...) test-all.R:146:2
   2. | \-testthat::quasi_label(enquo(object), label, arg = "object")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-RSocrata:::getResponse(url_csv_missing)
   5.   \-httr::stop_for_status(response)
  -- Error (test-all.R:165:3): read Socrata CSV as character ---------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata(...) test-all.R:165:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:176:3): read Socrata CSV as factor ------------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata(...) test-all.R:176:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:188:3): read Socrata JSON as default ----------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.json") test-all.R:188:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:199:3): read Socrata JSON as character --------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata(...) test-all.R:199:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:211:3): read Socrata JSON as factor -----------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata(...) test-all.R:211:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:227:3): readSoQL ------------------------------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("http://soda.demo.socrata.com/resource/4334-bgaj.csv?$select=region") test-all.R:227:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:237:3): readSocrataHumanReadable --------------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://soda.demo.socrata.com/dataset/USGS-Earthquake-Reports/4334-bgaj") test-all.R:237:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:243:3): Read URL provided by data.json from ls.socrata() - CSV --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://soda.demo.socrata.com/api/views/4334-bgaj/rows.csv?accessType=DOWNLOAD") test-all.R:243:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:249:3): Read URL provided by data.json from ls.socrata() - JSON --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://soda.demo.socrata.com/api/views/4334-bgaj/rows.json?accessType=DOWNLOAD") test-all.R:249:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Failure (test-all.R:272:3): read Socrata JSON with missing fields (issue 19 - bind within page) --
  `df <- read.socrata("https://data.cityofchicago.org/resource/kn9c-c2s2.json")` threw an error.
  Message: Service Unavailable (HTTP 503).
  Class:   http_503/http_500/http_error/error/condition
  https://github.com/Chicago/RSocrata/issues/19
  Backtrace:
      x
   1. +-testthat::expect_error(...) test-all.R:272:2
   2. | \-testthat:::quasi_capture(...)
   3. |   +-testthat:::.capture(...)
   4. |   | \-base::withCallingHandlers(...)
   5. |   \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   6. \-RSocrata::read.socrata("https://data.cityofchicago.org/resource/kn9c-c2s2.json")
   7.   \-RSocrata:::getResponse(validUrl, email, password)
   8.     \-httr::stop_for_status(response)
  -- Failure (test-all.R:274:3): read Socrata JSON with missing fields (issue 19 - bind within page) --
  rows not equal to nrow(df).
  Types not compatible: double is not NULL
  https://github.com/Chicago/RSocrata/issues/19
  -- Failure (test-all.R:275:3): read Socrata JSON with missing fields (issue 19 - bind within page) --
  columns not equal to ncol(df).
  Types not compatible: double is not NULL
  https://github.com/Chicago/RSocrata/issues/19
  -- Error (test-all.R:280:3): read Socrata JSON with missing fields (issue 19 - binding pages together) --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata(...) test-all.R:280:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:289:3): Accept a URL with a $limit= clause and properly limit the results --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("http://soda.demo.socrata.com/resource/4334-bgaj.json?$LIMIT=500") test-all.R:289:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:306:3): If URL has no queries, insert $order:id into URL --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://data.cityofchicago.org/resource/kn9c-c2s2.json") test-all.R:306:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:321:3): If URL has an $order clause, do not insert ?$order:id into URL --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://data.cityofchicago.org/resource/kn9c-c2s2.json?$order=hardship_index") test-all.R:321:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:335:3): If URL has only non-order query parameters, insert $order:id into URL --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://data.cityofchicago.org/resource/kn9c-c2s2.json?$limit=50") test-all.R:335:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:359:3): Handle URL with query that does not return :id ----
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata(qurl) test-all.R:359:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:390:3): CSV with Token ------------------------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata(...) test-all.R:390:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:397:3): readSocrataHumanReadableToken ---------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata(...) test-all.R:397:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:403:3): API Conflict --------------------------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata(...) test-all.R:403:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:411:3): readAPIConflictHumanReadable ----------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata(...) test-all.R:411:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:422:3): incorrect API Query -------------------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://soda.demo.socrata.com/resource/4334-bgaj.csv?$$app_token=ew2rEMuESuzWPqMkyPfOSGJgE") test-all.R:422:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:429:3): Ensure filtering and app tokens can coexist - API --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata(...) test-all.R:429:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:437:3): incorrect API Query Human Readable ----------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://soda.demo.socrata.com/dataset/USGS-Earthquake-Reports/4334-bgaj?$$app_token=ew2rEMuESuzWPqMkyPfOSGJgE") test-all.R:437:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:445:3): Handle /data suffix -------------------------------
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata("https://soda.demo.socrata.com/dataset/USGS-Earthquake-Reports/4334-bgaj/data") test-all.R:445:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  -- Error (test-all.R:458:3): List datasets available from a Socrata domain -----
  Error: lexical error: invalid char in json text.
                                         <!DOCTYPE html PUBLIC "-//W3C//
                       (right here) ------^
  
  Backtrace:
      x
   1. \-RSocrata::ls.socrata("https://soda.demo.socrata.com") test-all.R:458:2
   2.   \-jsonlite::fromJSON(content(response, "text"))
   3.     \-jsonlite:::parse_and_simplify(...)
   4.       \-jsonlite:::parseJSON(txt, bigint_as_char)
   5.         \-jsonlite:::parse_string(txt, bigint_as_char)
  -- Error (test-all.R:471:3): Catalog Fields are assigned as attributes when listing data sets --
  Error: lexical error: invalid char in json text.
                                         <!DOCTYPE html PUBLIC "-//W3C//
                       (right here) ------^
  
  Backtrace:
      x
   1. \-RSocrata::ls.socrata("https://soda.demo.socrata.com") test-all.R:471:2
   2.   \-jsonlite::fromJSON(content(response, "text"))
   3.     \-jsonlite:::parse_and_simplify(...)
   4.       \-jsonlite:::parseJSON(txt, bigint_as_char)
   5.         \-jsonlite:::parse_string(txt, bigint_as_char)
  -- Error (test-all.R:556:3): getContentAsDataFrame does not get caught in infinite loop --
  Error: Service Unavailable (HTTP 503).
  Backtrace:
      x
   1. \-RSocrata::read.socrata(u) test-all.R:556:2
   2.   \-RSocrata:::getResponse(validUrl, email, password)
   3.     \-httr::stop_for_status(response)
  
  [ FAIL 38 | WARN 2 | SKIP 4 | PASS 31 ]
  Error: Test failures
  Execution halted