superfaceai / edgar

AI tool for integrating APIs
https://superface.ai/edgar
4 stars 1 forks source link

[FEEDBACK] here: creating integration took too long #9

Open julpat opened 1 year ago

julpat commented 1 year ago

Used Prompt


Feedback

It is stuck on step processing:metada and after a few minutes it fails with error (processing) or timeout (UI).

Looks like this provider is very slow in general.

julpat commented 1 year ago

Log:


---------------------------------
started
---------------------------------
at: 2023-04-13T18:24:51.606Z

version: 2023-03-22-13

---------------------------------
analyzed
---------------------------------
at: 2023-04-13T18:24:57.232Z

documentation: Authentication

ApiKey in query
A key generated specifically to authenticate API requests. For more information on how to get an API key, see the Identity & Access Management Guide.
Security Scheme Type    API Key
Query parameter name:   apiKey

Authentication

ApiKey in query
A key generated specifically to authenticate API requests. For more information on how to get an API key, see the Identity & Access Management Guide.
Security Scheme Type    API Key
Query parameter name:   apiKey

200
Content type
application/json

{
"items": [
{
"title": "string",
"id": "string",
"politicalView": "string",
"resultType": "administrativeArea",
"houseNumberType": "PA",
"addressBlockType": "block",
"localityType": "postalCode",
"administrativeAreaType": "county",
"houseNumberFallback": true,
"address": {
"label": "string",
"countryCode": "string",
"countryName": "string",
"stateCode": "string",
"state": "string",
"countyCode": "string",
"county": "string",
"city": "string",
"district": "string",
"subdistrict": "string",
"street": "string",
"block": "string",
"subblock": "string",
"postalCode": "string",
"houseNumber": "string",
"building": "string"
},
"position": {
"lat": 0,
"lng": 0
},
"access": [
{
"lat": 0,
"lng": 0
}
],
"distance": 172039,
"excursionDistance": 0,
"mapView": {
"west": 0,
"south": 0,
"east": 0,
"north": 0
},
"categories": [
{
"id": "string",
"name": "string",
"primary": true
}
],
"chains": [
{
"id": "string"
}
],
"references": [
{
"supplier": {
"id": "core"
},
"id": "string"
}
],
"foodTypes": [
{
"id": "string",
"name": "string",
"primary": true
}
],
"contacts": [
{
"phone": [
{
"label": "string",
"value": "string",
"categories": [
{
"id": "string",
"name": "string",
"primary": true
}
]
}
],
"mobile": [
{
"label": "string",
"value": "string",
"categories": [
{
"id": "string",
"name": "string",
"primary": true
}
]
}
],
"tollFree": [
{
"label": "string",
"value": "string",
"categories": [
{
"id": "string",
"name": "string",
"primary": true
}
]
}
],
"fax": [
{
"label": "string",
"value": "string",
"categories": [
{
"id": "string",
"name": "string",
"primary": true
}
]
}
],
"www": [
{
"label": "string",
"value": "string",
"categories": [
{
"id": "string",
"name": "string",
"primary": true
}
]
}
],
"email": [
{
"label": "string",
"value": "string",
"categories": [
{
"id": "string",
"name": "string",
"primary": true
}
]
}
]
}
],
"openingHours": [
{
"categories": [
{
"id": "string",
"name": "string",
"primary": true
}
],
"text": [
"string"
],
"isOpen": true,
"structured": [
{
"start": "string",
"duration": "string",
"recurrence": "string"
}
]
}
],
"timeZone": {
"name": "string",
"utcOffset": "string"
},
"extended": { },
"phonemes": {
"placeName": [
{
"value": "string",
"language": "string",
"preferred": true
}
],
"countryName": [
{
"value": "string",
"language": "string",
"preferred": true
}
],
"state": [
{
"value": "string",
"language": "string",
"preferred": true
}
],
"county": [
{
"value": "string",
"language": "string",
"preferred": true
}
],
"city": [
{
"value": "string",
"language": "string",
"preferred": true
}
],
"district": [
{
"value": "string",
"language": "string",
"preferred": true
}
],
"subdistrict": [
{
"value": "string",
"language": "string",
"preferred": true
}
],
"street": [
{
"value": "string",
"language": "string",
"preferred": true
}
],
"block": [
{
"value": "string",
"language": "string",
"preferred": true
}
],
"subblock": [
{
"value": "string",
"language": "string",
"preferred": true
}
]
},
"streetInfo": [
{
"baseName": "string",
"streetType": "string",
"streetTypePrecedes": true,
"streetTypeAttached": true,
"prefix": "string",
"suffix": "string",
"direction": "string",
"language": "string"
}
]
}
]
}

Browse

This endpoint provides search results for places based on different filters, such as categories or name, ranked by distance from a given search center. The only mandatory elements exposed in the response are id and position. The other elements shown in the response samples section are only dataset attributes suggestions.

GET
/v1/browse
https://browse.search.hereapi.com/v1/browse

---------------------------------
error
---------------------------------
at: 2023-04-13T18:35:04.390Z

error: {
  __type: 'Err',
  kind: 'unknown',
  message: 'Error while getting use case ',
  detail: '{\n' +
    '  "message": "timeout of 100000ms exceeded",\n' +
    '  "name": "Error",\n' +
    '  "stack": "Error: timeout of 100000ms exceeded\\n    at createError (/Users/juliuspataky/_web/superface/edgar/node_modules/axios/lib/core/createError.js:16:15)\\n    at RedirectableRequest.handleRequestTimeout (/Users/juliuspataky/_web/superface/edgar/node_modules/axios/lib/adapters/http.js:369:16)\\n    at RedirectableRequest.emit (node:events:513:28)\\n    at RedirectableRequest.emit (node:domain:489:12)\\n    at Timeout.<anonymous> (/Users/juliuspataky/_web/superface/edgar/node_modules/follow-redirects/index.js:169:12)\\n    at listOnTimeout (node:internal/timers:564:17)\\n    at processTimers (node:internal/timers:507:7)",\n' +
    '  "config": {\n' +
    '    "transitional": {\n' +
    '      "silentJSONParsing": true,\n' +
    '      "forcedJSONParsing": true,\n' +
    '      "clarifyTimeoutError": false\n' +
    '    },\n' +
    '    "transformRequest": [\n' +
    '      null\n' +
    '    ],\n' +
    '    "transformResponse": [\n' +
    '      null\n' +
    '    ],\n' +
    '    "timeout": 100000,\n' +
    '    "xsrfCookieName": "XSRF-TOKEN",\n' +
    '    "xsrfHeaderName": "X-XSRF-TOKEN",\n' +
    '    "maxContentLength": -1,\n' +
    '    "maxBodyLength": -1,\n' +
    '    "headers": {\n' +
    '      "Accept": "application/json, text/plain, */*",\n' +
    '      "Content-Type": "application/json",\n' +
    '      "User-Agent": "OpenAI/NodeJS/3.2.1",\n' +
    '      "Authorization": "Bearer sk-v3v...0ZN",\n' +
    '      "Content-Length": 4445\n' +
    '    },\n' +
    '    "method": "post",\n' +
    '    "data": "{\\"model\\":\\"gpt-4\\",\\"messages\\":[{\\"role\\":\\"system\\",\\"content\\":\\"AuthenticationApiKey in queryA key generated specifically to authenticate API requests. For more information on how to get an API key, see the Identity & Access Management Guide.Security Scheme Type\\\\tAPI KeyQuery parameter name:\\\\tapiKey200Content typeapplication/json{\\\\\\"items\\\\\\": [{\\\\\\"title\\\\\\": \\\\\\"string\\\\\\",\\\\\\"id\\\\\\": \\\\\\"string\\\\\\",\\\\\\"politicalView\\\\\\": \\\\\\"string\\\\\\",\\\\\\"resultType\\\\\\": \\\\\\"administrativeArea\\\\\\",\\\\\\"houseNumberType\\\\\\": \\\\\\"PA\\\\\\",\\\\\\"addressBlockType\\\\\\": \\\\\\"block\\\\\\",\\\\\\"localityType\\\\\\": \\\\\\"postalCode\\\\\\",\\\\\\"administrativeAreaType\\\\\\": \\\\\\"county\\\\\\",\\\\\\"houseNumberFallback\\\\\\": true,\\\\\\"address\\\\\\": {\\\\\\"label\\\\\\": \\\\\\"string\\\\\\",\\\\\\"countryCode\\\\\\": \\\\\\"string\\\\\\",\\\\\\"countryName\\\\\\": \\\\\\"string\\\\\\",\\\\\\"stateCode\\\\\\": \\\\\\"string\\\\\\",\\\\\\"state\\\\\\": \\\\\\"string\\\\\\",\\\\\\"countyCode\\\\\\": \\\\\\"string\\\\\\",\\\\\\"county\\\\\\": \\\\\\"string\\\\\\",\\\\\\"city\\\\\\": \\\\\\"string\\\\\\",\\\\\\"district\\\\\\": \\\\\\"string\\\\\\",\\\\\\"subdistrict\\\\\\": \\\\\\"string\\\\\\",\\\\\\"street\\\\\\": \\\\\\"string\\\\\\",\\\\\\"block\\\\\\": \\\\\\"string\\\\\\",\\\\\\"subblock\\\\\\": \\\\\\"string\\\\\\",\\\\\\"postalCode\\\\\\": \\\\\\"string\\\\\\",\\\\\\"houseNumber\\\\\\": \\\\\\"string\\\\\\",\\\\\\"building\\\\\\": \\\\\\"string\\\\\\"},\\\\\\"position\\\\\\": {\\\\\\"lat\\\\\\": 0,\\\\\\"lng\\\\\\": 0},\\\\\\"access\\\\\\": [{\\\\\\"lat\\\\\\": 0,\\\\\\"lng\\\\\\": 0}],\\\\\\"distance\\\\\\": 172039,\\\\\\"excursionDistance\\\\\\": 0,\\\\\\"mapView\\\\\\": {\\\\\\"west\\\\\\": 0,\\\\\\"south\\\\\\": 0,\\\\\\"east\\\\\\": 0,\\\\\\"north\\\\\\": 0},\\\\\\"categories\\\\\\": [{\\\\\\"id\\\\\\": \\\\\\"string\\\\\\",\\\\\\"name\\\\\\": \\\\\\"string\\\\\\",\\\\\\"primary\\\\\\": true}],\\\\\\"chains\\\\\\": [{\\\\\\"id\\\\\\": \\\\\\"string\\\\\\"}],\\\\\\"references\\\\\\": [{\\\\\\"supplier\\\\\\": {\\\\\\"id\\\\\\": \\\\\\"core\\\\\\"},\\\\\\"id\\\\\\": \\\\\\"string\\\\\\"}],\\\\\\"foodTypes\\\\\\": [{\\\\\\"id\\\\\\": \\\\\\"string\\\\\\",\\\\\\"name\\\\\\": \\\\\\"string\\\\\\",\\\\\\"primary\\\\\\": true}],\\\\\\"contacts\\\\\\": [{\\\\\\"phone\\\\\\": [{\\\\\\"label\\\\\\": \\\\\\"string\\\\\\",\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"categories\\\\\\": [{\\\\\\"id\\\\\\": \\\\\\"string\\\\\\",\\\\\\"name\\\\\\": \\\\\\"string\\\\\\",\\\\\\"primary\\\\\\": true}]}],\\\\\\"mobile\\\\\\": [{\\\\\\"label\\\\\\": \\\\\\"string\\\\\\",\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"categories\\\\\\": [{\\\\\\"id\\\\\\": \\\\\\"string\\\\\\",\\\\\\"name\\\\\\": \\\\\\"string\\\\\\",\\\\\\"primary\\\\\\": true}]}],\\\\\\"tollFree\\\\\\": [{\\\\\\"label\\\\\\": \\\\\\"string\\\\\\",\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"categories\\\\\\": [{\\\\\\"id\\\\\\": \\\\\\"string\\\\\\",\\\\\\"name\\\\\\": \\\\\\"string\\\\\\",\\\\\\"primary\\\\\\": true}]}],\\\\\\"fax\\\\\\": [{\\\\\\"label\\\\\\": \\\\\\"string\\\\\\",\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"categories\\\\\\": [{\\\\\\"id\\\\\\": \\\\\\"string\\\\\\",\\\\\\"name\\\\\\": \\\\\\"string\\\\\\",\\\\\\"primary\\\\\\": true}]}],\\\\\\"www\\\\\\": [{\\\\\\"label\\\\\\": \\\\\\"string\\\\\\",\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"categories\\\\\\": [{\\\\\\"id\\\\\\": \\\\\\"string\\\\\\",\\\\\\"name\\\\\\": \\\\\\"string\\\\\\",\\\\\\"primary\\\\\\": true}]}],\\\\\\"email\\\\\\": [{\\\\\\"label\\\\\\": \\\\\\"string\\\\\\",\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"categories\\\\\\": [{\\\\\\"id\\\\\\": \\\\\\"string\\\\\\",\\\\\\"name\\\\\\": \\\\\\"string\\\\\\",\\\\\\"primary\\\\\\": true}]}]}],\\\\\\"openingHours\\\\\\": [{\\\\\\"categories\\\\\\": [{\\\\\\"id\\\\\\": \\\\\\"string\\\\\\",\\\\\\"name\\\\\\": \\\\\\"string\\\\\\",\\\\\\"primary\\\\\\": true}],\\\\\\"text\\\\\\": [\\\\\\"string\\\\\\"],\\\\\\"isOpen\\\\\\": true,\\\\\\"structured\\\\\\": [{\\\\\\"start\\\\\\": \\\\\\"string\\\\\\",\\\\\\"duration\\\\\\": \\\\\\"string\\\\\\",\\\\\\"recurrence\\\\\\": \\\\\\"string\\\\\\"}]}],\\\\\\"timeZone\\\\\\": {\\\\\\"name\\\\\\": \\\\\\"string\\\\\\",\\\\\\"utcOffset\\\\\\": \\\\\\"string\\\\\\"},\\\\\\"extended\\\\\\": { },\\\\\\"phonemes\\\\\\": {\\\\\\"placeName\\\\\\": [{\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"language\\\\\\": \\\\\\"string\\\\\\",\\\\\\"preferred\\\\\\": true}],\\\\\\"countryName\\\\\\": [{\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"language\\\\\\": \\\\\\"string\\\\\\",\\\\\\"preferred\\\\\\": true}],\\\\\\"state\\\\\\": [{\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"language\\\\\\": \\\\\\"string\\\\\\",\\\\\\"preferred\\\\\\": true}],\\\\\\"county\\\\\\": [{\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"language\\\\\\": \\\\\\"string\\\\\\",\\\\\\"preferred\\\\\\": true}],\\\\\\"city\\\\\\": [{\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"language\\\\\\": \\\\\\"string\\\\\\",\\\\\\"preferred\\\\\\": true}],\\\\\\"district\\\\\\": [{\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"language\\\\\\": \\\\\\"string\\\\\\",\\\\\\"preferred\\\\\\": true}],\\\\\\"subdistrict\\\\\\": [{\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"language\\\\\\": \\\\\\"string\\\\\\",\\\\\\"preferred\\\\\\": true}],\\\\\\"street\\\\\\": [{\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"language\\\\\\": \\\\\\"string\\\\\\",\\\\\\"preferred\\\\\\": true}],\\\\\\"block\\\\\\": [{\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"language\\\\\\": \\\\\\"string\\\\\\",\\\\\\"preferred\\\\\\": true}],\\\\\\"subblock\\\\\\": [{\\\\\\"value\\\\\\": \\\\\\"string\\\\\\",\\\\\\"language\\\\\\": \\\\\\"string\\\\\\",\\\\\\"preferred\\\\\\": true}]},\\\\\\"streetInfo\\\\\\": [{\\\\\\"baseName\\\\\\": \\\\\\"string\\\\\\",\\\\\\"streetType\\\\\\": \\\\\\"string\\\\\\",\\\\\\"streetTypePrecedes\\\\\\": true,\\\\\\"streetTypeAttached\\\\\\": true,\\\\\\"prefix\\\\\\": \\\\\\"string\\\\\\",\\\\\\"suffix\\\\\\": \\\\\\"string\\\\\\",\\\\\\"direction\\\\\\": \\\\\\"string\\\\\\",\\\\\\"language\\\\\\": \\\\\\"string\\\\\\"}]}]}BrowseThis endpoint provides search results for places based on different filters, such as categories or name, ranked by distance from a given search center. The only mandatory elements exposed in the response are id and position. The other elements shown in the response samples section are only dataset attributes suggestions.GET/v1/browsehttps://browse.search.hereapi.com/v1/browse\\"},{\\"role\\":\\"user\\",\\"content\\":\\"\\\\n      From the documentation above, write HTTP request, success response and error response in RFC format to \\\\\\"build a cv\\\\\\" in JSON, wrap URL parameters which are NOT defined in build a cv in \\\\\\"{}\\\\\\" \\\\\\".\\\\n      request:\\\\n      \\\\n      \\\\n      response:\\\\n      \\\\n      \\\\n      error:\\"}],\\"top_p\\":1,\\"temperature\\":0.2}",\n' +
    '    "url": "https://api.openai.com/v1/chat/completions",\n' +
    '    "axios-retry": {\n' +
    '      "retryCount": 5,\n' +
    '      "lastRequestTime": 1681410804410\n' +
    '    }\n' +
    '  },\n' +
    '  "code": "ECONNABORTED",\n' +
    '  "status": null\n' +
    '}'
}

type: processing