Skip to content

RuntimeError: generator raised StopIteration #5

Description

@ChrisH861

I am trying to get data form the MetOffice API, I have adapted the forecastTokenizeLive example and I know my URL and GET headers are correct and should return data as the work when using the urequests library. However when using medea I get the below error before any data is returned.

line 104, in tokenizeValue 
    byte = gen.send(repeat) \
RuntimeError: generator raised StopIteration

The only thing I can think of is, I have noticed that the MetOffice API doesn't return content-length as part of its header. Am I correct in thinking this a requirement and is there any way of getting it working?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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