Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

users.profile.set leads to encoding issue #206

Closed
4 of 9 tasks

Comments

@plaetzchen
Copy link

plaetzchen commented Aug 4, 2017

Description

When using SlackClient to call users.profile.set I get a invalid_profile error which is documented as a missing URL encoding of the payload.

What type of issue is this? (place an x in one of the [ ])

  • bug
  • enhancement (feature request)
  • question
  • documentation related
  • testing related
  • discussion

Requirements (place an x in each of the [ ])

  • I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • I've read and agree to the Code of Conduct.
  • I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

slackclient version: 1.0.7

python version: 3.6

OS version(s): macOS 10.12 & AWS Lambda

Steps to reproduce:

  1. Use sc.api_call() to call "users.profile.set" with a valid status_text & status_emoji payload
  2. print() the results
  3. You see a invalid_profile error

Expected result:

Write the profile changes

Actual result:

Getting an error

@aoberoi
Copy link
Contributor

aoberoi commented Aug 21, 2017

i haven't gotten around to trying to reproduce this one just yet, but i want you to know that you're issue isn't being ignored. thanks!

@Roach
Copy link
Contributor

Roach commented Sep 30, 2017

Can you post the code you're running?

This is working for me:

sc.api_call(
  "users.profile.set",
  profile={
      "status_text": "riding a train",
      "status_emoji": ":mountain_railway:"
  }
)

Does your token have the users.profile:write scope?

@bjab bjab mentioned this issue May 1, 2017
6 tasks
@Roach Roach closed this as completed Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment