slack api files.upload error: not_in_channel - slack-api

trying to upload a file from a build server following the doc: https://api.slack.com/methods/files.upload
And also using bot token: https://api.slack.com/authentication/basics
I am getting the error: {"ok":false,"error":"not_in_channel"}
Appreciate any help and pointers!

This error occurs when a bot oauth token is used and the bot isn't in the target channel(s).
To fix:
Go into target channel(s)
Type /invite #BOT_NAME
Retry the request

Related

What are the reasons why Slack API is getting failed_to_send_invite error?

Currently using this code to send workspace invites via Slack API, this is working but for some emails it is getting this failed_to_send_invite error. At first I thought it was because of using test emails, but now we also encountered it with a gmail email. Any idea why this error occurs? Documentation only says "The invite failed to send." as the description for this error.
response = slack.admin_users_invite(team_id=workspace_id, email=invitee_email, channel_ids=channel_id, custom_message=custom_msg, guest_expiration_ts=guest_expiry_epoch,is_restricted="true")

InvalidAuthenticationToken on calling Microsoft Graph Service

I am follow the tutorial that Microsoft has provided for signing a user into a desktop application using Microsoft Identity Platform and calling ASP.NET Core Web API which calls Microsoft Graph. I believe I followed all of the steps, configuring my service and client per instructions. https://github.com/Azure-Samples/active-directory-dotnet-native-aspnetcore-v2/tree/master/2.%20Web%20API%20now%20calls%20Microsoft%20Graph
However upon trying to add a new "to-do", I get the following error: "Bad Request: An error occurred while calling the downstream API Code:InvalidAuthenticationToken
Message: Invalid x5t claim "
The error occurs on this call:
User user = _graphServiceClient.Me.Request().GetAsync().GetAwaiter().GetResult();
Any idea what the issue might be and how I troubleshoot?
Update: I am in the middle of troubleshooting this now with an admin. I am not getting roles back but he is and we now both agree the issue is on the azure application configuration, not the code... frustrating, but we are at least making progress.
Would you please try pasting the token into jwt.ms to decode it and inspect the claims?
I got a similar error due to a lack of access. Changing Delegated and Application Permission for Users solved the issue. You can try that.

Error uploading actions to Gactions ( Google Assistant )

I am receiving the following error on uploading the actions.json to gactions using Windows as well as Linux.
ERROR: Failed to update the app for the Assistant
ERROR: The caller does not have permission
2019/04/13 13:56:47 Server did not return HTTP 200
Account used to upload action is same as the one used to create project.
I am able to get the verification code and once I paste back in terminal to authenticate it gives the above error.
Can someone please guide what is to be done exactly, I am using the below guide on google
https://developers.google.com/assistant/sdk/guides/library/python/extend/custom-actions

Microsoft Face API - Error 401, iOS

I have used the Subscription ID in my App and am getting following error at runtime.
Error Domain=POFaceServiceClient error - http response is not success :
{"error":{"code":"Unspecified","message":"Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key."}}
Code=401 "(null)"
I taken the ID from the Keys after creating a new service. I even regenerated them. Every time I run the program, same error is thrown.
Hope you guys have a fix.
Cheers!
I could fix it finally. :)
Over creating the API KEY, just make sure that you supply for westus server and the endpoint should be:
https://westus.api.cognitive.microsoft.com/face/v1.0
In my case, it works.

Office365 API App registration fails: Bad Request

When registering an app at https://dev.office.com/Getting-Started/office365Apis, I get the following error:
The following error occurred while processing your request:
ERROR: Request_BadRequest - Invalid value found for property 'identifierUris' of resource 'Application'.
I have registered an another app successfully before with the same account. The URIs for my app are https.
How can I overcome this problem?
sorry to hear you're having trouble. Our team is investigating and will update this answer once we have it identified.
Is it possible to share the App Name and/or Redirect URI that your are using, as well as the platform chose? Understand if it's not. Are there any non-alpha numeric characters?
In the meantime, you can register your app manually through Azure AD. Here is how: https://msdn.microsoft.com/en-us/office/office365/howto/add-common-consent-manually

Resources