For more information, I enabled all the necessary scopes, detele the app, reinstall, login again, and that error still exist! ...
What you mean \"that error still exist\"? Do you mean that \"files.content.read\" scope is missing still, despite you have added in the just created application? 🤔 If so, that would be really strange. Take a look more carefully and see what exactly error appear. Make sure that you have authenticated the application instance with the just created application credentials (app key and secret) and not the old!
The error you have posted in OP shows only missing scopes, nothing more. If something else comes up, post it. For now, everything else seems Ok.
Good luck.
Seems your post got in the forum trash.
strugglingstudent wrote:When I reinstall the application, it requires me to authenticate the app again, which I did. And I can view my files as a list, upload new files. ...
You have authenticated, but how?! 👆 When you reauthenticate after application reinstall, actually you get an new authentication token based on your app key and secret. Did you make sure you did use correct application key and secret and not the old? 🤔 That's not clear! You can see this too in the authentication browser view (the application identification). Is it correct?
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"208","kudosSumWeight":1,"postTime":"2021-01-23T09:18:22.180-08:00","lastPublishTime":"2021-01-23T09:50:09.876-08:00","metrics":{"__typename":"MessageMetrics","views":2479},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:101000041/category:101007/category:English/community:mxpez29397board:101000042/message:489776/message:489792","replies":{"__typename":"MessageConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[{"__typename":"MessageEdge","cursor":"MjUuMnwyLjF8aXwxfDUyOjF8aW50LDQ4OTgwOCw0ODk4MDg","node":{"__ref":"ForumReplyMessage:message:489808"}}]},"customFields":[],"editFrozen":false,"body@stringLength":"2101","rawBody":"wrote: For more information, I enabled all the necessary scopes, detele the app, reinstall, login again, and that error still exist! ...
Hi
What you mean \"that error still exist\"? Do you mean that \"files.content.read\" scope is missing still, despite you have added in the just created application? 🤔 If so, that would be really strange. Take a look more carefully and see what exactly error appear. Make sure that you have authenticated the application instance with the just created application credentials (app key and secret) and not the old!
The error you have posted in OP shows only missing scopes, nothing more. If something else comes up, post it. For now, everything else seems Ok.
Good luck.
Seems your post got in the forum trash.
wrote: When I reinstall the application, it requires me to authenticate the app again, which I did. And I can view my files as a list, upload new files. ...
You have authenticated, but how?! 👆 When you reauthenticate after application reinstall, actually you get an new authentication token based on your app key and secret. Did you make sure you did use correct application key and secret and not the old? 🤔 That's not clear! You can see this too in the authentication browser view (the application identification). Is it correct?
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:489792_2"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"ModerationData:moderation_data:489808":{"__typename":"ModerationData","id":"moderation_data:489808","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"ForumReplyMessage:message:489808":{"__typename":"ForumReplyMessage","author":{"__ref":"User:user:1402922"},"id":"message:489808","revisionNum":1,"uid":489808,"depth":3,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:101000042"},"parent":{"__ref":"ForumReplyMessage:message:489792"},"conversation":{"__ref":"Conversation:conversation:489776"},"subject":"Re: Invalid_access_token with the android example app","moderationData":{"__ref":"ModerationData:moderation_data:489808"},"body":"Dear @Здравко,
Im not sure what I did is correct. My steps to reauthenticate:
- Delete app
- Install app
- Log in with dropbox, where I allow my app to access dropbox
After I submit my changes to the scope, I notice that my app key is still the same (I think the token changes). According to the android example README, I only need to put my app key, nothing related to the secret key. So I believe I used the correct app key. If I am doing wrong, can you tell me the step to reauthenticate?
","body@stripHtml({\"removeProcessingText\":false,\"removeSpoilerMarkup\":false,\"removeTocMarkup\":false,\"truncateLength\":200})@stringLength":"203","kudosSumWeight":0,"repliesCount":1,"postTime":"2021-01-23T10:01:33.893-08:00","lastPublishTime":"2021-01-23T10:01:33.893-08:00","metrics":{"__typename":"MessageMetrics","views":2450},"visibilityScope":"PUBLIC","placeholder":false,"originalMessageForPlaceholder":null,"isEscalated":null,"solution":false,"entityType":"FORUM_REPLY","eventPath":"category:101000041/category:101007/category:English/community:mxpez29397board:101000042/message:489776/message:489808","customFields":[],"readOnly":false,"editFrozen":false,"body@stringLength":"1652","rawBody":"Dear @Здравко,
Im not sure what I did is correct. My steps to reauthenticate:
- Delete app
- Install app
- Log in with dropbox, where I allow my app to access dropbox
After I submit my changes to the scope, I notice that my app key is still the same (I think the token changes). According to the android example README, I only need to put my app key, nothing related to the secret key. So I believe I used the correct app key. If I am doing wrong, can you tell me the step to reauthenticate?
","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:489808_1"},"latestVersion":null,"messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"QueryVariables:MessageSolutions":{"__typename":"QueryVariables","id":"MessageSolutions","value":{"first":10,"constraints":{"topicId":{"eq":"message:489776"},"solution":{"eq":true}},"sorts":{"postTime":{"direction":"ASC"}},"useAvatar":true,"useAuthorLogin":true,"useAuthorRank":false,"useBody":true,"useKudosCount":false,"useTimeToRead":false,"useMedia":true,"useRepliesCount":false,"useSearchSnippet":false,"useAcceptedSolutionButton":true,"useSolvedBadge":false,"useAttachments":true,"useTags":false,"useUserHoverCard":false,"useNodeHoverCard":false,"usePreviewSubjectModal":false,"useMessageStatus":false}},"CachedAsset:text:en_US-components/community/NavbarDropdownToggle-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/community/NavbarDropdownToggle-1744039682780","value":{"ariaLabelClosed":"Press the down arrow to open the menu"},"localOverride":false},"CachedAsset:text:en_US-components/customComponent/CustomComponent-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/customComponent/CustomComponent-1744039682780","value":{"errorMessage":"Error rendering component id: {customComponentId}","bannerTitle":"Video provider requires cookies to play the video. Accept to continue or {url} it directly on the provider's site.","buttonTitle":"Accept","urlText":"watch"},"localOverride":false},"CachedAsset:text:en_US-components/messages/EscalatedMessageBanner-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/messages/EscalatedMessageBanner-1744039682780","value":{"escalationMessage":"Escalated to Salesforce by {username} on {date}","viewDetails":"View Details","modalTitle":"Case Details","escalatedBy":"Escalated by: ","escalatedOn":"Escalated on: ","caseNumber":"Case Number: ","status":"Status: ","lastUpdateDate":"Last Update: ","automaticEscalation":"automatic escalation","anonymous":"Anonymous"},"localOverride":false},"CachedAsset:text:en_US-components/users/UserLink-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/users/UserLink-1744039682780","value":{"authorName":"View Profile: {author}","anonymous":"Anonymous"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/users/UserRank-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/users/UserRank-1744039682780","value":{"rankName":"{rankName}","userRank":"Author rank {rankName}"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageTime-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageTime-1744039682780","value":{"postTime":"Published: {time}","lastPublishTime":"Last Update: {time}","conversation.lastPostingActivityTime":"Last posting activity time: {time}","conversation.lastPostTime":"Last post time: {time}","moderationData.rejectTime":"Rejected time: {time}"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageSolvedBadge-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageSolvedBadge-1744039682780","value":{"solved":"Solved"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageSubject-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageSubject-1744039682780","value":{"noSubject":"(no subject)"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageBody-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageBody-1744039682780","value":{"showMessageBody":"Show More","mentionsErrorTitle":"{mentionsType, select, board {Board} user {User} message {Message} other {}} No Longer Available","mentionsErrorMessage":"The {mentionsType} you are trying to view has been removed from the community.","videoProcessing":"Video is being processed. Please try again in a few minutes.","bannerTitle":"Video provider requires cookies to play the video. Accept to continue or {url} it directly on the provider's site.","buttonTitle":"Accept","urlText":"watch"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageCustomFields-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageCustomFields-1744039682780","value":{"CustomField.default.label":"Value of {name}"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageReplyButton-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageReplyButton-1744039682780","value":{"repliesCount":"{count}","title":"Reply","title@board:BLOG@message:root":"Comment","title@board:TKB@message:root":"Comment","title@board:IDEA@message:root":"Comment","title@board:OCCASION@message:root":"Comment"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageSolutionList-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageSolutionList-1744039682780","value":{"emptyDescription":"No has been message solutions yet"},"localOverride":false},"CachedAsset:text:en_US-components/messages/AcceptedSolutionButton-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/messages/AcceptedSolutionButton-1744039682780","value":{"accept":"Mark as Solution","accepted":"Marked as Solution","errorHeader":"Error!","errorAdd":"There was an error marking as solution.","errorRemove":"There was an error unmarking as solution.","solved":"Solved","topicAlreadySolvedErrorTitle":"Solution Already Exists","topicAlreadySolvedErrorDesc":"Refresh the browser to view the existing solution"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/common/Pager/PagerLoadMore-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/common/Pager/PagerLoadMore-1744039682780","value":{"loadMore":"Show More"},"localOverride":false},"CachedAsset:text:en_US-components/nodes/NodeView/NodeViewCard-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/nodes/NodeView/NodeViewCard-1744039682780","value":{"title":"{nodeTitle} ","creationDate":"Created: {creationDate}","ownedBy":"Owned by: {owners}{text}","showOwnerListText":", and {ownersCount} more","unreadCount":"{count} unread","nodeViewDrawerBtn":"Node view drawer for {place}","drawerActionTooltip":"Show category children"},"localOverride":false},"CachedAsset:text:en_US-components/messages/MessageView/MessageViewInline-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/messages/MessageView/MessageViewInline-1744039682780","value":{"bylineAuthor":"{bylineAuthor}","bylineBoard":"{bylineBoard}","anonymous":"Anonymous","place":"Place {bylineBoard}","gotoParent":"Go to parent {name}"},"localOverride":false},"Revision:revision:489808_1":{"__typename":"Revision","id":"revision:489808_1","lastEditTime":"2021-01-23T10:01:33.893-08:00"},"Revision:revision:489787_3":{"__typename":"Revision","id":"revision:489787_3","lastEditTime":"2021-01-23T09:04:49.435-08:00"},"Revision:revision:489792_2":{"__typename":"Revision","id":"revision:489792_2","lastEditTime":"2021-01-23T09:50:09.876-08:00"},"Revision:revision:489784_1":{"__typename":"Revision","id":"revision:489784_1","lastEditTime":"2021-01-23T08:48:05.272-08:00"},"ModerationData:moderation_data:489834":{"__typename":"ModerationData","id":"moderation_data:489834","status":"APPROVED","rejectReason":null,"isReportedAbuse":false,"rejectUser":null,"rejectTime":null,"rejectActorType":null},"AcceptedSolutionMessage:message:489834":{"__typename":"AcceptedSolutionMessage","author":{"__ref":"User:user:422790"},"id":"message:489834","revisionNum":1,"uid":489834,"depth":4,"hasGivenKudo":false,"subscribed":false,"board":{"__ref":"Forum:board:101000042"},"parent":{"__ref":"ForumReplyMessage:message:489808"},"conversation":{"__ref":"Conversation:conversation:489776"},"subject":"Re: Invalid_access_token with the android example app","moderationData":{"__ref":"ModerationData:moderation_data:489834"},"body":"I am not sure still what application you are trying to build and run (you didn't share a link to yet). One more thing you should take care about is what are scopes you have queried at moment of authentication (at runtime). Even when you have enabled all available scopes at application creation time, those scopes are available for application key only. When you recieve authentication token (the one actually used by Dropbox API), its scopes set is a subset of application key set (not mandatory entire - i.e. you can query at run time only 2 scopes from all available, for example). Make sure you have queried all scopes too (all needed, at least) on token query time!
Hope this gives right direction.
","body@stripHtml({\"removeProcessingText\":true,\"removeSpoilerMarkup\":true,\"removeTocMarkup\":true,\"truncateLength\":200})@stringLength":"203","postTime":"2021-01-23T11:27:06.846-08:00","lastPublishTime":"2021-01-23T11:27:06.846-08:00","images":{"__typename":"AssociatedImageConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"attachments":{"__typename":"AttachmentConnection","pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null},"edges":[]},"solution":true,"metrics":{"__typename":"MessageMetrics","views":2437},"placeholder":false,"originalMessageForPlaceholder":null,"videos":{"__typename":"VideoConnection","edges":[],"totalCount":0,"pageInfo":{"__typename":"PageInfo","hasNextPage":false,"endCursor":null,"hasPreviousPage":false,"startCursor":null}},"isEscalated":null,"entityType":"FORUM_REPLY","eventPath":"category:101000041/category:101007/category:English/community:mxpez29397board:101000042/message:489776/message:489834","customFields":[],"readOnly":false,"editFrozen":false,"body@stringLength":"943","rawBody":"Hi
I am not sure still what application you are trying to build and run (you didn't share a link to yet). One more thing you should take care about is what are scopes you have queried at moment of authentication (at runtime). Even when you have enabled all available scopes at application creation time, those scopes are available for application key only. When you recieve authentication token (the one actually used by Dropbox API), its scopes set is a subset of application key set (not mandatory entire - i.e. you can query at run time only 2 scopes from all available, for example). Make sure you have queried all scopes too (all needed, at least) on token query time!
Hope this gives right direction.
","kudosSumWeight":0,"repliesCount":0,"timeToRead":1,"currentRevision":{"__ref":"Revision:revision:489834_1"},"latestVersion":null,"visibilityScope":"PUBLIC","messagePolicies":{"__typename":"MessagePolicies","canModerateSpamMessage":{"__typename":"PolicyResult","failureReason":{"__typename":"FailureReason","message":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","key":"error.lithium.policies.feature.moderation_spam.action.moderate_entity.allowed.accessDenied","args":[]}}}},"CachedAsset:text:en_US-shared/client/components/users/UserAvatar-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/users/UserAvatar-1744039682780","value":{"altText":"{login}'s avatar","altTextGeneric":"User's avatar"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/ranks/UserRankLabel-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/ranks/UserRankLabel-1744039682780","value":{"altTitle":"Icon for {rankName} rank"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/nodes/NodeAvatar-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/nodes/NodeAvatar-1744039682780","value":{"altTitle":"Node avatar for {nodeTitle}"},"localOverride":false},"CachedAsset:text:en_US-shared/client/components/nodes/NodeDescription-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-shared/client/components/nodes/NodeDescription-1744039682780","value":{"description":"{description}"},"localOverride":false},"CachedAsset:text:en_US-components/nodes/NodeTopicsCount-1744039682780":{"__typename":"CachedAsset","id":"text:en_US-components/nodes/NodeTopicsCount-1744039682780","value":{"topicCount":"{count}","topicCountWithNeutralLabel@board:OCCASION":"{count, plural, one{# Event} other{# Events}}","topicCountWithNeutralLabel":"{count, plural, one{# Post} other{# Posts}}","topicCount@board:FORUM":"{count, plural, one{# Post} other{# Posts}}","topicCount@board:BLOG":"{count, plural, one{# Post} other{# Posts}}","topicCount@board:CONTEST":"{count, plural, one{# Entry} other{# Entries}}","topicCount@board:GROUP":"{count, plural, one{# Topic} other{# Topics}}","topicCount@board:IDEA":"{count, plural, one{# Idea} other{# Ideas}}","topicCount@board:QANDA":"{count, plural, one{# Question} other{# Questions}}","topicCount@board:TKB":"{count, plural, one{# Article} other{# Articles}}","topicCount@board:OCCASION":"{count, plural, one{# Event} other{# Events}}","title":"{count, plural,one {