GithubHelp home page GithubHelp logo

tai7sy / onedrivefly Goto Github PK

View Code? Open in Web Editor NEW
284.0 8.0 165.0 579 KB

OneDrive Index Anywhere (QCloud SCF/Aliyun FC/Cloudflare Workers/Google Cloud Functions etc.)

License: MIT License

PHP 97.27% JavaScript 2.73%

onedrivefly's Introduction

onedrivefly's People

Contributors

qkqpttgf avatar tai7sy avatar xiyan233 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

onedrivefly's Issues

刚才更新的显示失败,如下

{"errorCode":-1,"errorMessage":"Process exited before completing request"}

日志:
START RequestId: b689b480-bcde-11e9-a159-52540014ca86
Event RequestId: b689b480-bcde-11e9-a159-52540014ca86
Warning: include(vendor/autoload.php): failed to open stream: No such file or directory in /var/user/index.php on line 2

Warning: include(): Failed opening 'vendor/autoload.php' for inclusion (include_path='/var/user:/var/runtime/php7') in /var/user/index.php on line 2

Warning: include(functions.php): failed to open stream: No such file or directory in /var/user/index.php on line 3

Warning: include(): Failed opening 'functions.php' for inclusion (include_path='/var/user:/var/runtime/php7') in /var/user/index.php on line 3

Fatal error: Uncaught Error: Call to undefined function path_format() in /var/user/index.php:51

Stack trace:

#0 /var/runtime/php7/bootstrap.php(41): main_handler(Array, Array)

#1 /var/runtime/php7/bootstrap.php(189): _scf_bootstrap\EventHandler->handle(Object(stdClass), Object(stdClass))

#2 /var/runtime/php7/bootstrap.php(212): _scf_bootstrap__main_for_scf()

#3 {main}

thrown in /var/user/index.php on line 51

END RequestId: b689b480-bcde-11e9-a159-52540014ca86

Report RequestId: b689b480-bcde-11e9-a159-52540014ca86 Duration:14ms Memory:128MB MaxMemoryUsed:12.918MB

测试了几次一直这样

不支持个人版微软账号吗?

AADSTS50020: User account '[email protected]' from identity provider 'live.com' does not exist in tenant '默认目录' and cannot access the application '298004f7-c751-4d56-aba3-b058c0154fd2'(OneDrive API) in that tenant. The account needs to be added as an external user in the tenant first. Sign out and sign in again with a different Azure Active Directory user account.

Get a refresh_token的时候返回:error=access_denied

authorization_code?error=access_denied&error_description=AADSTS650051%3a+Using+application+'OneDrive+API'+is+currently+not+supported+for+your+organization+stu.scau.edu.cn+because+it+is+in+an+unmanaged+state.+An+administrator+needs+to+claim+ownership+of+the+company+by+DNS+validation+of+stu.scau.edu.cn+before+the+application+OneDrive+API+can+be+provisioned.%0D%0ATrace+ID%3a+8fd3bb22-96d0-4bac-bd1a-9b97d95d6500%0D%0ACorrelation+ID%3a+ab213287-b2f8-45df-8d0b-b21943c714d2%0D%0ATimestamp%3a+2019-07-19+15%3a15%3a04Z

请问一下这种是什么原因导致的?

未来计划功能

推荐大佬参考
github.com/WangNingkai/OLAINDEX

OneDrive 目录查看索引分页查看;
支持代码、图片、文本文件即时预览、图片列表栏展示;
支持音视频播放(兼容大部分格式),视频播放采用 Dplayer.js,音乐播放采用 Aplayer;
支持自定义创建文件夹、文件夹加密、文件/文件夹删除、文件/文件夹的复制与移动;
支持文件搜索、文件上传、文件直链分享与删除、文件直链一键下载;
支持管理 readme/head 说明文件;
支持图床;
支持命令行操作;
支持文件离线下载(个人版);
后台基本显示管理,多主题管理,文件预览管理等等(清理缓存后及时生效);
支持世纪互联;
支持多种缓存系统(Redis、Memcached等);
更多功能欢迎亲自尝试。
注: 部分功能需登录。

部署在阿里云fc报错 502

这个报错是什么原因?

{
   "errorMessage": "Cannot access private property React\\Http\\Io\\ServerRequest::$cookies",
   "errorType": "Error",
   "stackTrace": {
      "file": "/code/index.php",
      "line": 119,
      "traceString": ""
   }
}

在授权Microsoft账户权限后出现错误:Call to undefined function curl_init()

在授权Microsoft账户权限后出现错误:

Call to undefined function curl_init()
#0 OneDriveFly\index.php(36): curl('https://graph.m...', 0, NULL, Array)
#1 OneDriveFly\index.php(36): Library\OneDrive->info('/password')
#2 OneDriveFly\index.php(869): Library\OneDrive->get('/password')
#3 OneDriveFly\index.php(270): render(Array, Array, Array)
#4 OneDriveFly\index.php(62): handler(Object(Symfony\Component\HttpFoundation\Request))
#5 OneDriveFly\index.php(103): cgi_entry()
#6 {main}

url:

/?oauth_callback=%7B"name"%3A"1"%2C"code"%3A"0.AXEAg-fyIXQ_L0mpLlLmvvIhsfcEgClRx1ZNq6OwWMAVT9JxAJQ.AQABAAIAAAD--DLA3VO7QrddgJg7WevrQFedDHx8-gxG9XvUMYLEbFzpJQfEgAjSXXpa-Y2IJCgui1teyrXbhAhNNGHjW_GdiUfCwBoQKTW1GnjGDG3WWBzLzu-Tx28GvX-crm1C7_fVwYwxIED5L2hBhmO4Kw0T8Z_ddkqd_9uOGBtCfo4ST91_s_DkvzxQKkyNYxfLWy733YLndJdpCU3T4huT8cTY4AwkhN5hQkAX5ANYVBmuQT6zb7qM9M0qoqcxENE5PSqEOjJzMwUW41jnDl2qaLlD_duFXZf_SWA79NvN7buR4GoGJs5Z7KBuqs6hmsJYg8egtgKJtugpSxiVWEba5oUWE7CBUbKvQqKT94b9nq0zu0djUxsRkl5Sz46EfWsJU55KAR_f7C895SunD7vxMN8rrX0jAli2or1_kOHriJ8H86IIVxFgUPmagSI210F_GhZpgi7Oay3GGpLmn6-6SXGVi9vcxhBLVO09RewlKTEtS6fbodw6oYu51fj7_RTsr3Yo15MYb4AN7PuoCJ1CeEKGuIl-FMTSh2Z1Mw8ordqp0Dif1cC-5k5RMcuRuElOcQhsYTf3r2l_Ta_Eq49Sh1EkfZQobtK1Dl67FIT0BIzdc5rqJ7AbPHLdFEfx1BYYfDWhxcyMsBZYM2-cyosmrvM-3FnBGINtioprwFj5wwVQLYNIlkYsU24AMqYEqd3yxLaH_gQA5M69MKa3eP7Fggr7Izozt-cXcWeKDLyiqTiFvsT0je410HsCSGOX87f55qEwvAgHC_3PU21MW5dKBPossG4jreH8PXgy5nmjn0ug3SAA"%2C"oauth"%3A%7B"redirect_uri"%3A"https%3A%2F%2Fonedrivefly.github.io"%2C"client_id"%3A"298004f7-c751-4d56-aba3-b058c0154fd2"%2C"client_secret"%3A"-%5E(!BpF-l9%2Fz%23%5B%2B5t)alg%3B%5BV%40%3B%3B)_%5D%3B)%40j%23%5EE%3BT(%26%5E4uD%3B%26%3F%232)>H%3F"%2C"oauth_url"%3A"https%3A%2F%2Flogin.microsoftonline.com%2Fcommon%2Foauth2%2Fv2.0%2F"%2C"api_url"%3A"https%3A%2F%2Fgraph.microsoft.com%2Fv1.0%2Fme%2Fdrive%2Froot"%2C"scope"%3A"https%3A%2F%2Fgraph.microsoft.com%2FFiles.ReadWrite.All%20offline_access"%7D%7D

程序各种异常报错

常见的情况有
1,超时
2,Warning: Invalid argument supplied for foreach() in /var/user/index.php on line 244 Warning: Invalid argument supplied for foreach() in /var/user/index.php on line 259
3,{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Exception: failed to get access_token. in /var/user/index.php:61\nStack trace:\n#0 /var/user/index.php(90): fetch_files('/OneDrive/%E6%9...')\n#1 /var/user/index.php(32): list_files('/%E6%95%99%E7%A...')\n#2 /var/runtime/php7/bootstrap.php(41): main_handler(Array, Object(stdClass))\n#3 /var/runtime/php7/bootstrap.php(177): _scf_bootstrap\EventHandler-\u003ehandle(Object(stdClass), Object(stdClass))\n#4 /var/runtime/php7/bootstrap.php(200): _scf_bootstrap\__main_for_scf()\n#5 {main}"}

这该怎么解决

无法加密

提示400

400

<TITLE>Bad Request</TITLE>

Bad Request


HTTP Error 400. The request is badly formed.

Index file or folder list is not opening

I successfully integrated index.php code in my server and it also shows the file content of the the folder whose path i entered in the code but the problem is when I try to open the particular file or folder it says page not found.

I think the problem is when I open indexed file or folder, it search for that URL in my server or website rather than in onedrive.

html文件预览显示错误

上一版本正常,更新后发现不能预览html文件,不知道是api限制还是小bug,如下:

{"errorCode":-1,"errorMessage":"Grpc invokeFunction error: rpc error: code = ResourceExhausted desc = grpc: received message larger than max (4906398 vs. 4194304)"}

加密提示400

400

<TITLE>Bad Request</TITLE>

Bad Request


HTTP Error 400. The request is badly formed.

能否加一个看图

你好,能不能增加像oneindex一样的看图模式?还有就是反馈一个问题,就是当文件超过200时,它只显示前200个

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.