We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.

Forum Discussion

DanielTucan's avatar
DanielTucan
New member | Level 2
2 years ago

My synchronization script suddenly stopped working

Hello, 

My synchronization script suddenly stopped working:

 

I'm using Laravel Framework and

"spatie/flysystem-dropbox": "^1.2"
 
... 
 
$files = Storage::disk('dropbox')->files($details);
 
Which returns an array with all the files in the folder on dropbox

$files = array:5 [
0 => "PRINTARE FACTURI SI AWB/- PRINT FACTURI SI AWB -/DEPOZIT/FACTURI XML/2EMGLN91639761.xml"
1 => "PRINTARE FACTURI SI AWB/- PRINT FACTURI SI AWB -/DEPOZIT/FACTURI XML/2EMGLN91640706.xml"
2 => "PRINTARE FACTURI SI AWB/- PRINT FACTURI SI AWB -/DEPOZIT/FACTURI XML/2EMGLN91642191.xml"
3 => "PRINTARE FACTURI SI AWB/- PRINT FACTURI SI AWB -/DEPOZIT/FACTURI XML/FACTURA_NR_202230197_COJOCARI_ANDREEA_DPD.xml"
4 => "PRINTARE FACTURI SI AWB/- PRINT FACTURI SI AWB -/DEPOZIT/FACTURI XML/FACTURA_NR_202230198_CRING_ROMEO_DPD.xml"
]

the the script loops on $files array and runs the next logic:

$content = Storage::disk('dropbox')->get($file); // where file is "PRINTARE FACTURI SI AWB/- PRINT FACTURI SI AWB -/DEPOZIT/FACTURI XML/2EMGLN91639761.xml"

and then  I get the error: 

File not found at path: PRINTARE FACTURI SI AWB/- PRINT FACTURI SI AWB -/DEPOZIT/FACTURI XML/FACTURA_NR_202230198_CRING_ROMEO_DPD.xml

PS. The script was working perfectly for over an year an more then this error suddenly appeared

 
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    There was a service disruption earlier that may have caused this issue, however I can't say for sure based on this error output. That disruption is resolved now, so please let me know if you're still seeing this issue. Thanks!

About Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,875 PostsLatest Activity: 2 years ago
323 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!