Community
BIM 360 API Forum
Welcome to Autodesk’s BIM 360 API Forums. Share your knowledge, ask questions, and explore popular BIM 360 API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Field API Login - 401

16 REPLIES 16
Reply
Message 1 of 17
Anonymous
1130 Views, 16 Replies

Field API Login - 401

Anonymous
Not applicable

We trying to login using the https://bim360field.autodesk.com/api/login using the required credentials. The username has admin access to the project and Field account. We get "401-Unauthorized credentials" as response for this. What are we missing here?  

0 Likes

Field API Login - 401

We trying to login using the https://bim360field.autodesk.com/api/login using the required credentials. The username has admin access to the project and Field account. We get "401-Unauthorized credentials" as response for this. What are we missing here?  

16 REPLIES 16
Message 2 of 17
mikako_harada
in reply to: Anonymous

mikako_harada
Community Manager
Community Manager

Hi Praveen, 

 

Looks like you are missing "s" in https

 

URL: https://bim360field.autodesk.com/api/login

 

For more detail: 

 

https://fieldofviewblog.wordpress.com/2015/04/08/lab1-hello-field-world/


Mikako Harada
Developer Technical Services
0 Likes

Hi Praveen, 

 

Looks like you are missing "s" in https

 

URL: https://bim360field.autodesk.com/api/login

 

For more detail: 

 

https://fieldofviewblog.wordpress.com/2015/04/08/lab1-hello-field-world/


Mikako Harada
Developer Technical Services
Message 3 of 17
Anonymous
in reply to: mikako_harada

Anonymous
Not applicable

Thanks for the response.

 

Have tried that too, with 'https'. Still doesnt work. Same response, 401.

0 Likes

Thanks for the response.

 

Have tried that too, with 'https'. Still doesnt work. Same response, 401.

Message 4 of 17
mikako_harada
in reply to: Anonymous

mikako_harada
Community Manager
Community Manager

Are you based in Europe?  If so, maybe this one? 

 

https://fieldofviewblog.wordpress.com/2016/08/18/base-url-for-bim-360-field-in-european-countries/

 

 


Mikako Harada
Developer Technical Services
0 Likes

Are you based in Europe?  If so, maybe this one? 

 

https://fieldofviewblog.wordpress.com/2016/08/18/base-url-for-bim-360-field-in-european-countries/

 

 


Mikako Harada
Developer Technical Services
Message 5 of 17
Anonymous
in reply to: mikako_harada

Anonymous
Not applicable

No. We are based out of India. And mapped to the US servers.

0 Likes

No. We are based out of India. And mapped to the US servers.

Message 6 of 17
mikako_harada
in reply to: Anonymous

mikako_harada
Community Manager
Community Manager

Do you have many expired accounts?   Such as expired trial accounts?  

 

https://forums.autodesk.com/t5/bim-360-api-forum/bim-360-api-fails-when-trying-to-connect-to-field/m...

 

 


Mikako Harada
Developer Technical Services
0 Likes

Do you have many expired accounts?   Such as expired trial accounts?  

 

https://forums.autodesk.com/t5/bim-360-api-forum/bim-360-api-fails-when-trying-to-connect-to-field/m...

 

 


Mikako Harada
Developer Technical Services
Message 7 of 17
Anonymous
in reply to: mikako_harada

Anonymous
Not applicable

No. The account is active. And all the projects the user is admin for are also active.

0 Likes

No. The account is active. And all the projects the user is admin for are also active.

Message 8 of 17
mikako_harada
in reply to: Anonymous

mikako_harada
Community Manager
Community Manager

Praveen,

 

I understand the account you are accessing through UI right now is active. But since your are saying that you cannot access through API, I'm trying to confirm is if you have ever used other accounts in the past, which you no longer have an access, such as expired trials.  

 

As discussed in this thread, we had a case where a user had expired accounts, which was preventing for him to access the account is still linked to your Autodesk ID.  If this is the case, we will need to ask the engineering team to purge unwanted accounts linked to your Autodesk id:   

https://forums.autodesk.com/t5/bim-360-api-forum/bim-360-api-fails-when-trying-to-connect-to-field/m...

 

But if you confirm, you don't have anything like that, then we will need to find what else is causing your issue. 

 

 

 

 


Mikako Harada
Developer Technical Services
0 Likes

Praveen,

 

I understand the account you are accessing through UI right now is active. But since your are saying that you cannot access through API, I'm trying to confirm is if you have ever used other accounts in the past, which you no longer have an access, such as expired trials.  

 

As discussed in this thread, we had a case where a user had expired accounts, which was preventing for him to access the account is still linked to your Autodesk ID.  If this is the case, we will need to ask the engineering team to purge unwanted accounts linked to your Autodesk id:   

https://forums.autodesk.com/t5/bim-360-api-forum/bim-360-api-fails-when-trying-to-connect-to-field/m...

 

But if you confirm, you don't have anything like that, then we will need to find what else is causing your issue. 

 

 

 

 


Mikako Harada
Developer Technical Services
Message 9 of 17
Anonymous
in reply to: mikako_harada

Anonymous
Not applicable
No. I have not used any account in the past.
0 Likes

No. I have not used any account in the past.
Message 10 of 17
mikako_harada
in reply to: Anonymous

mikako_harada
Community Manager
Community Manager

Could you try with the e-mail address registered with Autodesk account?  


Mikako Harada
Developer Technical Services
0 Likes

Could you try with the e-mail address registered with Autodesk account?  


Mikako Harada
Developer Technical Services
Message 11 of 17
Anonymous
in reply to: mikako_harada

Anonymous
Not applicable
Yes. Have tried that too.

0 Likes

Yes. Have tried that too.

Message 12 of 17
keith.white
in reply to: Anonymous

keith.white
Autodesk
Autodesk

Looking at the original post and the attached image, I see a name in the username field rather than an email. 

 

When logging into the Field web UI (bim360field.autodesk.com) do you use "praveenraoATLCT" or do you use an email address?  My guess is that this is where the problem is to be found.  If you can log into the Field web UI with a set of credentials, then you can authenticate with the API using those same credentials as well, unless there are issues with inactive accounts as Mikako mentioned earlier.

 

I hope this helps,



Keith White

Principal Solution Architect, Autodesk Consulting
0 Likes

Looking at the original post and the attached image, I see a name in the username field rather than an email. 

 

When logging into the Field web UI (bim360field.autodesk.com) do you use "praveenraoATLCT" or do you use an email address?  My guess is that this is where the problem is to be found.  If you can log into the Field web UI with a set of credentials, then you can authenticate with the API using those same credentials as well, unless there are issues with inactive accounts as Mikako mentioned earlier.

 

I hope this helps,



Keith White

Principal Solution Architect, Autodesk Consulting
Message 13 of 17
Anonymous
in reply to: keith.white

Anonymous
Not applicable
As I mentioned earlier, I have tried using both email and the username to
login, with no help. Also, I was never a part of any inactive accounts or
projects.

0 Likes

As I mentioned earlier, I have tried using both email and the username to
login, with no help. Also, I was never a part of any inactive accounts or
projects.

Message 14 of 17
keith.white
in reply to: Anonymous

keith.white
Autodesk
Autodesk
In order to use the Field APIs you must first authenticate and receive a ticket, which is what you are trying to do. This authentication must be obtained by using the credentials of a user that is active on at least one Field project. If you are not using credentials from such a user, then authentication will never be possible as this is a core requirement.

I suggest that you use such credentials to first log into the Field web interface to validate that they work as desired, then you attempt to authenticate using the API with the same credentials.


Keith White

Principal Solution Architect, Autodesk Consulting
0 Likes

In order to use the Field APIs you must first authenticate and receive a ticket, which is what you are trying to do. This authentication must be obtained by using the credentials of a user that is active on at least one Field project. If you are not using credentials from such a user, then authentication will never be possible as this is a core requirement.

I suggest that you use such credentials to first log into the Field web interface to validate that they work as desired, then you attempt to authenticate using the API with the same credentials.


Keith White

Principal Solution Architect, Autodesk Consulting
Message 15 of 17
Anonymous
in reply to: keith.white

Anonymous
Not applicable
The credentials we are using is working with the field application. I'm
mapped to 4 projects and the admin for all these projects.

The same credentials is failing in API login.
0 Likes

The credentials we are using is working with the field application. I'm
mapped to 4 projects and the admin for all these projects.

The same credentials is failing in API login.
Message 16 of 17
Anonymous
in reply to: Anonymous

Anonymous
Not applicable

Any suggestions on solving this issue? We are loosing time on this, need to know whats going wrong and where.

0 Likes

Any suggestions on solving this issue? We are loosing time on this, need to know whats going wrong and where.

Message 17 of 17
Anonymous
in reply to: mikako_harada

Anonymous
Not applicable

@Anonymous Is it possible this is being caused by a CORs issue? I'm having the same issue. I can get a ticket using the classic Field API if I use something like Python or Postman; but as soon as I switch to Javascript & Node.JS + React it stops working and presents an error message: "blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

 

Is this something that I can solve at my end, or is this blocked somehow at your end?

 

I'm trying to run it from localhost if it makes any difference.

0 Likes

@Anonymous Is it possible this is being caused by a CORs issue? I'm having the same issue. I can get a ticket using the classic Field API if I use something like Python or Postman; but as soon as I switch to Javascript & Node.JS + React it stops working and presents an error message: "blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."

 

Is this something that I can solve at my end, or is this blocked somehow at your end?

 

I'm trying to run it from localhost if it makes any difference.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report