dlt-hub / dlt-hub/dlt-init-openapi

Maximum recursion depth exceeded on Sentry API

Open
#138 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
39
Forks
8
PR merge metrics
No merged PRs in 30d

Description

### dlt version

0.4.12

### Describe the problem

I'm getting this error trying to generate the pipeline for Sentry

```
/Users/azra/Perforce/sentry-dlt/venv/lib/python3.9/site-packages/questionary/prompts/common.py:490 in create_inquirer_layout │
│ │
│ 487 │ """Create a layout combining question and inquirer selection.""" │
│ 488 │ │
│ 489 │ ps = PromptSession(get_prompt_tokens, reserve_space_for_menu=0, **kwargs) │
│ ❱ 490 │ _fix_unecessary_blank_lines(ps) │
│ 491 │ │
│ 492 │ validation_prompt = PromptSession(bottom_toolbar=lambda: ic.error_message, **kwargs) │
│ 493 │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ ic = │ │
│ │ kwargs = {} │ │
│ │ ps = │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /Users/azra/Perforce/sentry-dlt/venv/lib/python3.9/site-packages/questionary/prompts/common.py:472 in _fix_unecessary_blank_lines │
│ │
│ 469 │ default_container = ps.layout.container │
│ 470 │ │
│ 471 │ default_buffer_window = ( │
│ ❱ 472 │ │ default_container.get_children()[0].content.get_children()[1].content │
│ 473 │ ) │
│ 474 │ │
│ 475 │ assert isinstance(default_buffer_window, Window) │
│ │
│ ╭───────────────────────────────────────── locals ──────────────────────────────────────────╮ │
│ │ default_container = │ │
│ │ ps = │ │
│ ╰───────────────────────────────────────────────────────────────────────────────────────────╯ │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
AttributeError: 'VSplit' object has no attribute 'content'
```

### Expected behavior

Generated pipeline

### Steps to reproduce

`dlt-init-openapi sentry --url https://raw.githubusercontent.com/getsentry/sentry-api-schema/main/openapi-derefed.json --global-limit 2`

### Operating system

macOS

### Runtime environment

Local

### Python version

3.9

### dlt data source

Sentry

### dlt destination

_No response_

### Other deployment details

I've also tried Python 13

### Additional information

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.