question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot load resource ".".

See original GitHub issue

I’m trying to configure api-platform/core on an existing app.

Following Installing API Platform Core I’ve set

# app/config/routing.yml

api:
    resource: '.'
    type:     'api_platform'
    prefix:   '/api' # Optional

But, going to 127.0.0.1:8001/api I receive the exception

FileLoaderLoadException in Loader.php line 73: Cannot load resource “.”.

What am I missing?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Aerendircommented, Oct 25, 2016

Mmm, really strange… On the new created app it works perfectly with the instructions provided by the tutorial… I’m going to investigate on the other app which is the problem…

0reactions
Aerendircommented, Oct 25, 2016

Strange… now all works well… I cleared the cache multiple times during tests and in the end I have only the same exact modifications suggested by the tutorial… Anyway now works… Before I’ve also deleted the cache folder but nothing changed… Anyway it seems to be a problem related to the cache…

Read more comments on GitHub >

github_iconTop Results From Across the Web

4 Ways to Fix the “Failed to Load Resource: net - Kinsta
A common culprit in Google Chrome is the cache. To reset your Chrome cache, open up the browser. Navigate to your Chrome settings...
Read more >
Failed to load resource under Chrome - Stack Overflow
I recently ran into this problem and discovered that it was caused by the "Adblock" extension (my best guess is that it's because...
Read more >
How To Fix "Failed To Load Resource" Error In WordPress
Failed to load resource error occurs when WordPress is unable to load a file that it is supposed to load. Basically when WordPress...
Read more >
Cannot load a resource from a ResourceScope that has been ...
The error "Cannot load a resource from a ResourceScope that has been disposed" has started appearing on a couple of libraries in one...
Read more >
Why might I receive the error "Cannot load resource string" in ...
It is possible that the path you copied from the other machine does not match the path on this machine. For example, if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found