Skip to content

Cannot create default Dataset when starting Apify actor on local environment #648

@ivanvs

Description

@ivanvs

In local environment with latest version of apify and crawlee, I am getting error below on startup:

Exception has occurred: ValueError
Invalid storage name "charging_log". Name can only contain letters "a" through "z", the digits "0" through"9", and the hyphen ("-") but only in the middle of the string (e.g. "my-value-1")
  File "/media/projects/apify/src/__main__.py", line 12, in test_actor
    async with Actor:
               ^^^^^
  File "/media/projects/apify/src/__main__.py", line 26, in <module>
    asyncio.run(test_actor()) 
    ~~~~~~~~~~~^^^^^^^^^^^^^^
ValueError: Invalid storage name "charging_log". Name can only contain letters "a" through "z", the digits "0" through"9", and the hyphen ("-") but only in the middle of the string (e.g. "my-value-1")

As far as I could tell Apify was not changing their code for quiet a long time:

dataset = await Dataset.open(name=self.LOCAL_CHARGING_LOG_DATASET_NAME)
.

Everything seems to work fine with crawlee version 1.0.0.

Code that I am using to start actor:

async def test_actor():
    async with Actor:
        await create_scraper()

asyncio.run(test_actor()) 

apify version: 3.0.3
crawlee version: 1.0.4
python: 3.13

Metadata

Metadata

Assignees

Labels

bugSomething isn't working.t-toolingIssues with this label are in the ownership of the tooling team.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions