Skip to content

TypeError: Parser must be a string or character stream, not NoneType #17

Description

@treeforest456

got this error when running our Stitch <-> Circle CI integration

2025-03-12 21:43:47,687Z    tap - CRITICAL Parser must be a string or character stream, not NoneType
2025-03-12 21:43:47,691Z    tap - Traceback (most recent call last):
2025-03-12 21:43:47,691Z    tap -   File "tap-env/bin/tap-circle-ci", line 8, in <module>
2025-03-12 21:43:47,691Z    tap -     sys.exit(main())
2025-03-12 21:43:47,691Z    tap -   File "/code/orchestrator/tap-env/lib/python3.6/site-packages/singer/utils.py", line 235, in wrapped
2025-03-12 21:43:47,691Z    tap -     return fnc(*args, **kwargs)
2025-03-12 21:43:47,691Z    tap -   File "/code/orchestrator/tap-env/lib/python3.6/site-packages/tap_circle_ci/__init__.py", line 23, in main
2025-03-12 21:43:47,691Z    tap -     sync(args.config, args.state, args.catalog or discover(args.config))
2025-03-12 21:43:47,691Z    tap -   File "/code/orchestrator/tap-env/lib/python3.6/site-packages/tap_circle_ci/sync.py", line 30, in sync
2025-03-12 21:43:47,691Z    tap -     state=state, schema=stream_schema, stream_metadata=stream_metadata, transformer=transformer
2025-03-12 21:43:47,691Z    tap -   File "/code/orchestrator/tap-env/lib/python3.6/site-packages/tap_circle_ci/streams/workflows.py", line 85, in sync
2025-03-12 21:43:47,691Z    tap -     parent_record_ids, records, max_bookmark = self.get_records(pipeline_id, bookmark_date)
2025-03-12 21:43:47,691Z    tap -   File "/code/orchestrator/tap-env/lib/python3.6/site-packages/tap_circle_ci/streams/workflows.py", line 64, in get_records
2025-03-12 21:43:47,691Z    tap -     record_timestamp = strptime_to_utc(record[self.replication_key])
2025-03-12 21:43:47,691Z    tap -   File "/code/orchestrator/tap-env/lib/python3.6/site-packages/singer/utils.py", line 61, in strptime_to_utc
2025-03-12 21:43:47,692Z    tap -     d_object = dateutil.parser.parse(dtimestr)
2025-03-12 21:43:47,692Z    tap -   File "/code/orchestrator/tap-env/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 1368, in parse
2025-03-12 21:43:47,692Z    tap -     return DEFAULTPARSER.parse(timestr, **kwargs)
2025-03-12 21:43:47,692Z    tap -   File "/code/orchestrator/tap-env/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 640, in parse
2025-03-12 21:43:47,692Z    tap -     res, skipped_tokens = self._parse(timestr, **kwargs)
2025-03-12 21:43:47,692Z    tap -   File "/code/orchestrator/tap-env/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 719, in _parse
2025-03-12 21:43:47,692Z    tap -     l = _timelex.split(timestr)         # Splits the timestr into tokens
2025-03-12 21:43:47,692Z    tap -   File "/code/orchestrator/tap-env/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 201, in split
2025-03-12 21:43:47,692Z    tap -     return list(cls(s))
2025-03-12 21:43:47,692Z    tap -   File "/code/orchestrator/tap-env/lib/python3.6/site-packages/dateutil/parser/_parser.py", line 70, in __init__
2025-03-12 21:43:47,692Z    tap -     '{itype}'.format(itype=instream.__class__.__name__))
2025-03-12 21:43:47,692Z    tap - TypeError: Parser must be a string or character stream, not NoneType

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions