My App is live & broken: Get Channel Followers not working

GET https://api.twitch.tv/helix/channels/followers

Impossible to get the right “total” I do get the right answer but it’s 0 and I have 8 followers…

I did login and give authorisation to moderator:read:followers in scope then:
I do:
let url = URL(string: “https://api.twitch.tv/helix/channels/followers?broadcaster_id=\(userId ?? “”)/”)
let sessionConfig = URLSessionConfiguration.default
let session = URLSession(configuration: sessionConfig)
var request = URLRequest(url: url!)
request.httpMethod = “GET”
request.addValue(“Bearer (accessToken)”, forHTTPHeaderField: “Authorization”)
request.addValue(ConsumerKey, forHTTPHeaderField: “Client-Id”)
request.addValue(“application/json”, forHTTPHeaderField: “Accept”)

To get:
{

“data” : [

],

“pagination” : {

},

“total” : 0

}

Which seams right but the total is wrong…

So whats the Actual URL you are calling?

Debug that out and check.

https://api.twitch.tv/helix/channels/followers?broadcaster_id=598287887/ and it succeeds as I do get a total which is wrong

Interesting… pasting it here made me realise the final / when removed it works fine… We can close the topic

Yeah you set the ID to 598287887/ which is not 598287887